var request = require('request');
var Agent = require('socks5-https-client/lib/Agent');
request.get('https://google.com', {
agentClass : Agent,
strictSSL : false,
agentOptions: {
"socksHost": "***",
"socksPort": ***,
"socksUsername": "***",
"socksPassword": "***"
},
headers : {
'Accept-Encoding': 'deflate, br',
'Accept-Language': 'ru,en;q=0.9,en-GB;q=0.8',
},
});
request = request.defaults({'proxy':'http://localproxy.com'})