Re: POE::Component::Client::HTTP, redirect after POST request

Martijn van Beers <[email protected]>
Newsgroups gmane.comp.lang.perl.poe
Message-ID <[email protected]>
On Tue, 2009-01-20 at 16:56 +0200, Anatoliy wrote:
> Hello,
> 
> I've got small trouble because of PoCo::Client::HTTP behaviour on redirecting 
> after POST request.
> 
> http://tools.ietf.org/html/rfc2616#section-10.3.3
> 
>       Note: RFC 1945 and RFC 2068 specify that the client is not allowed
>       to change the method on the redirected request.  However, most
>       existing user agent implementations treat 302 as if it were a 303
>       response, performing a GET on the Location field-value regardless
>       of the original request method.
> 
> Now POE::Component::Client::HTTP uses the same method as in original request, 
> but I think it should be nice to have an option (or a extra parameter) to 
> change behaviour.

The default is to not do anything special for redirects, which leaves
you free to do whatever you want when you get a 302 response.


Martijn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.