develooper Front page | perl.libwww | Postings from October 2001

Re: Minor bug in request()

Thread Previous | Thread Next
From:
Gisle Aas
Date:
October 26, 2001 15:41
Subject:
Re: Minor bug in request()
Message ID:
lradye81p4.fsf@caliper.ActiveState.com
"Eyal" <beyondcontrol@runbox.com> writes:

> There's a small and usually-not-too-interesting bug in the
> redirection process under UserAgent->request()...  When a server
> responds with a redirection for a POST request, the object handles
> the response by sending the POST to the new address.
> 
> In reality (which means - how IE does it, can't argue with the
> majority), after receiving a redirection to a POST, IE issues a GET
> to the new location.
> 
> Would be nice to change this on the next release...

Anybody care to provide a patch.  For the patch to be accepted it
should make LWP do the right thing for 303 and 307 too.

Ref: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3

Regards,
Gisle

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About