We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can i customise the User Agent headers? I want to leverage on socks5-https-client when performing the requests.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
This seemed like a good idea, so I quickly added a new config.json value that lets you set the User-Agent header.
It's documented here --
https://github.com/scripting/river5/blob/master/docs/CONFIG.md#httpport-1337
Let me know if it works.
Sorry, something went wrong.
Hi,
What should i change the User Agent headers to? It looks like socks5-https-client requires edit to the request headers.
var Agent = require('socks5-http-client/lib/Agent'); request({ url: 'http://en.wikipedia.org/wiki/SOCKS', agentClass: Agent, agentOptions: { socksHost: 'my-tor-proxy-host', // Defaults to 'localhost'. socksPort: 9050 // Defaults to 1080. } }, function(err, res) { console.log(err || res.body); });
I think i'll have to npm install socks5 first, then pass the Agent into the request.
No branches or pull requests
Can i customise the User Agent headers? I want to leverage on socks5-https-client when performing the requests.
Thanks in advance.
The text was updated successfully, but these errors were encountered: