I can’t make the HTTP node with POST method to ignore HTTP redirects. If the node follows the redirects, I’m not able to get auth cookie from the 302 response header. I’ve tried to set “Follow redirects” to “disabled” with no success. I’ve also tried to set “Max redirects” to “0” - same result. The HTTP node always follows the redirect.
To verify this behavior I’ve set up mitmproxy with a script that alters the response from the server from 302 to 200 so I can capture the cookie. But this is cumbersome.
Hi at n8n, just checking for any updates. There was a fix in the [email protected] version that mentions “HTTP Request Node: Follow redirects by default”. I did a test with the option “Follow Redirects” set to “disabled”, but the HTTP node with POST method still follows the redirect if disabled (so it seems to me it wasn’t fixed). Thanks.
Hello, I am facing the exact same problem currently. Will this issue be resolved soon? Thank you.
For your information, I am experiencing this problem with any HTTP method (GET, POST, PUT, …) and I am using this small worker (CloudFlare) created for the occasion to perform my tests: https://n8n-bug-follow-redirect.sitexw.workers.dev/page-1
Hi all, a fix for this should become available in the next release:
From reading through the dev comments for this to work you’d still need to enable Never Error in the HTTP Request’s Response options for this to work once this is released.
Thank you for your update. As a workaround I call the “curl” command using the " Execute Command" node. To make it work I had to modify the n8n docker image, because there is no curl in the released image by default (see n8n docs for the howto). The problem is that I have to modify the docker image each time a n8n update is published…
Hi again, I pulled the latest [email protected] docker-image to confirm the HTTP node fix (been mentioned in the release notes). I’ve created new HTTP node and set “Follow redirects” do disabled. I’ve set the “Never error” to enabled. Unfortunately, the node still follows the redirect. So I cannot confirm that the issue was fixed. Could someone else review the behavior? Thank you very much.
Hi @agobrecht, can you confirm if there is anything else @brady needs to do to take advantage of your bugfix? The workflow suggests he’s already using typeVersion 4.1 of the node including the fix.
My bad. I put the login pass into the query params section, not to the body section (when I recreated the HTTP node to verify the fix - the forms look same). I’m sorry. I do confirm that the “Follow redirects” option now works as expected if set to “disabled” - does not follow the redirect. Thank you for the fix and for you patience!