You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
jrasanen
changed the title
POST 301 redirects don't respect "agent" property
POST 301 redirects don't respect "agent" property (when using Request library)
Dec 3, 2014
Hi, thanks for filing this. I think this looks like a bug with Request. If you try using a normal HTTP agent which you instantiate yourself do you get the same buggy behaviour?
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.
The text was updated successfully, but these errors were encountered: