in reply to Redirect with Perl - POST method
From RFC2068, section 10.3.2:
If the 301 status code is received in response to a request other
than GET or HEAD, the user agent MUST NOT automatically redirect the
request unless it can be confirmed by the user, since this might
change the conditions under which the request was issued.
The same applies to 302 Moved Temporarily. It cannot be guaranteed that the client uses the same request method connecting the new location, if at all.
Note: When automatically redirecting a POST request after receiving
a 301 status code, some existing HTTP/1.0 user agents will
erroneously change it into a GET request.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Redirect with Perl - POST method
by powerhouse (Friar) on Jun 29, 2006 at 10:13 UTC | |
by derby (Abbot) on Jun 29, 2006 at 13:49 UTC |