httpclient icon indicating copy to clipboard operation
httpclient copied to clipboard

Redirect after POST req fails

Open nahi opened this issue 16 years ago • 5 comments

http://dev.ctor.org/http-access2/ticket/208

nahi avatar Oct 30 '09 05:10 nahi

auto-follow of POST redirect from 2.1.3 (http://dev.ctor.org/http-access2/wiki/Changes-213) is problematic. revert?

nahi avatar Oct 30 '09 15:10 nahi

I think this is still an issue.

Any plan on fixing this or any pointers on where I should look to fix this?

alecgorge avatar Apr 26 '12 20:04 alecgorge

@alecgorge Can you explain the issue you're facing now? I just want to drop post_content from the next major version of HTTPClient...

nahi avatar Aug 11 '12 05:08 nahi

When a Location header comes back on a POST request, httpclient crashes the app. I ended up turning off redirections and wrapping my POST calls into a method and handling the redirects manually

alecgorge avatar Aug 27 '12 19:08 alecgorge

Sorry for late reply. Two points;

  1. Per spec, HTTP client agents "MUST NOT" (by RFC2616 word definition) follow redirection automatically for other than GET and HEAD.
  2. Per behavior, HTTPClient#post_content should follow redirection automatically.

So there should be a bug around auto-redirection of HTTPClient. Can you show me a backtrace you get?

nahi avatar Sep 22 '12 01:09 nahi