mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-05-10 14:58:27 +00:00
16 lines
280 B
JavaScript
16 lines
280 B
JavaScript
|
var https = require("https");
|
||
|
|
||
|
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0';
|
||
|
|
||
|
var options = {
|
||
|
host: "localhost",
|
||
|
port: 8001,
|
||
|
path: "/",
|
||
|
headers: {
|
||
|
Host: "www.alipay.com"
|
||
|
}
|
||
|
};
|
||
|
https.get(options, function(res) {
|
||
|
console.log(res);
|
||
|
res.pipe(process.stdout);
|
||
|
});
|