I'm trying make request through proxy. It's my code.
var proxyList = [
'http://useame:pass@hostname:65233',
'https://useame:pass@hostname:65233'
];
var ADDRESS = 'https://google.com';
var TIMEOUT = 5*1000;
var rp = require('request-promise');
var url = require('url');
function check(proxyUrl){
rp({
method: 'GET',
uri: ADDRESS,
proxy: proxyUrl,
timeout: TIMEOUT,
tuel: true
})
.then(function(){
console.log('good - ' + proxyUrl);
})
.catch(function(e){
console.error(e);
});
}
proxyList.forEach(function(proxyData){
check(proxyData)
});
http proxy works well, but on https i receive timeout
curl commands works well on http and https
curl --proxy http://useame:pass@hostname:65233 https://google.com
curl --proxy https://useame:pass@hostname:65233 https://google.com
How i can make request through https proxy?
