in reply to POST redirect
Find this part in UserAgent.pm and edit like this:
sub redirect_ok { # draft-ietf-http-v10-spec-02.ps from www.ics.uci.edu, specify: # # If the 30[12] status code is received in response to a request using # the POST method, the user agent must not automatically redirect the # request unless it can be confirmed by the user, since this might cha +nge # the conditions under which the request was issued. my($self, $request) = @_; # return 0 if $request->method eq "POST"; 1; }
It should work now. Enjoy
Edited:
rob_au Gave me notice, that same can be easily done within script, just by redefining redirect_ok sub. Here is example:
sub LWP::UserAgent::redirect_ok { 1 }
Thanks
Li Tin O've Weedle
mad Tsort's philosopher
|
|---|