Re: General use of rewrite / redirect
| From: | Per Jessen | Date: | Tue, 18 Mar 2008 15:33:22 +0000 |
| Subject: | Re: General use of rewrite / redirect | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271737@lists.php.net to get a copy of this message | ||
Stut wrote:
> One minor thing... a 303 redirect is permanent. In this situation you
> want to use a 302 otherwise you could potentially cause problems with
> proxies.
A redirect following a POST really should be a 303 - RFC 2616 :
10.3.4 303 See Other
The response to the request can be found under a different URI and
SHOULD be retrieved using a GET method on that resource. This method
exists primarily to allow the output of a POST-activated script to
redirect the user agent to a selected resource.
/Per Jessen, Zürich