#32263 [NEW]: Location sets 302 on HTTP/1.1+POST, should be 303
| From: | pornel at despammed dot com | Date: | Thu, 10 Mar 2005 13:21:21 +0000 |
| Subject: | #32263 [NEW]: Location sets 302 on HTTP/1.1+POST, should be 303 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-75209@lists.php.net to get a copy of this message | ||
From: pornel at despammed dot com
Operating system: any
PHP version: 5.0.3
PHP Bug Type: HTTP related
Bug description: Location sets 302 on HTTP/1.1+POST, should be 303
Description:
------------
HTTP/1.1 user-agents should be redirected after POST request using 303
status.
According to RFC2616 user-agents MUST NOT redirect POST on 302 status
(unless confirmed by the user, AFAIK only Lynx does that), so 302 is not
the best choice in this situation.
In short: if (HTTP/1.1 && POST) default_redirect_status=303.
--
Edit bug report at http://bugs.php.net/?id=32263&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32263&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32263&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32263&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32263&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32263&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32263&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32263&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32263&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32263&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32263&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32263&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32263&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32263&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32263&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32263&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32263&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32263&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32263&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32263&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32263&r=mysqlcfg