nahi / httpclient

'httpclient' gives something like the functionality of libwww-perl (LWP) in Ruby.
https://github.com/nahi/httpclient
702 stars 289 forks source link

Redirect after POST req fails #1

Open nahi opened 14 years ago

nahi commented 14 years ago

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

nahi commented 14 years ago

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

alecgorge commented 12 years ago

I think this is still an issue.

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

nahi commented 12 years ago

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

alecgorge commented 12 years ago

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

nahi commented 11 years ago

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?