Redirect after POST req fails
http://dev.ctor.org/http-access2/ticket/208
auto-follow of POST redirect from 2.1.3 (http://dev.ctor.org/http-access2/wiki/Changes-213) is problematic. revert?
I think this is still an issue.
Any plan on fixing this or any pointers on where I should look to fix this?
@alecgorge Can you explain the issue you're facing now? I just want to drop post_content from the next major version of HTTPClient...
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
Sorry for late reply. Two points;
- Per spec, HTTP client agents "MUST NOT" (by RFC2616 word definition) follow redirection automatically for other than GET and HEAD.
- 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?