Answer the question
In order to leave comments, you need to log in
How to make an https request over sock5 using request?
At the moment the code is:
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',
},
});
Answer the question
In order to leave comments, you need to log in
A gziped response was returned. although only deflate and br were listed in the headers. However, the answer from Google could not decipher)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question