mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-20 04:24:20 +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);
|
|
}); |