note 46582 deleted from function.header by danbrown
| From: | danbrown@php.net | Date: | Sun, 07 Dec 2008 18:31:51 +0000 |
| Subject: | note 46582 deleted from function.header by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147831@lists.php.net to get a copy of this message | ||
Note Submitter: marcelo at redcetus dot com
----
Redirect the POST like this:
header("HTTP/1.0 307 Temporary redirect");
header("Location: https://myserver.redcetus.com/otherlocation");
if you dont put the 307 status code, the browser will use the GET method even if the original
request was a POST
WARNING: the POST method should not be idempotent. If you need to use this, you better take a closer
look to your design.