When POST returns 301, the following GET isn't using the same agent setting.
var options = {
url: 'http://website/',
method: 'POST',
headers: headers,
followAllRedirects: true,
agent: new Socks5ClientHttpAgent({socksHost: '127.0.0.1', socksPort: 9050}),
form: {
...
}
}
// POST returns 301 /index.php
request.post(options, function (err, httpResponse, body) {...});
With this example POST goes through TOR but the following GET doesn't.
When POST returns 301, the following GET isn't using the same agent setting.
With this example POST goes through TOR but the following GET doesn't.