#39989 [Opn->Fbk]: header location doesn't send explanation
| From: | iliaa@php.net | Date: | Sat, 30 Dec 2006 02:03:31 +0000 |
| Subject: | #39989 [Opn->Fbk]: header location doesn't send explanation | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-107024@lists.php.net to get a copy of this message | ||
ID: 39989
Updated by: iliaa@php.net
Reported By: Laurent Bigonville <l dot bigonville at edpnet dot
-Status: Open
+Status: Feedback
Bug Type: HTTP related
Operating System: Debian Sarge
PHP Version: 5.2.0
New Comment:
What SAPI are you using?
Previous Comments:
------------------------------------------------------------------------
[2006-12-30 01:06:35] l dot bigonville at edpnet dot be
I think it's because php_cgi return "Status: 302" with no explanation
------------------------------------------------------------------------
[2006-12-30 00:33:09] l dot bigonville at edpnet dot be
This is odd the problem occurs with the dotdeb packages on sarge but
not with debian's official packages on etch..
------------------------------------------------------------------------
[2006-12-30 00:24:39] Laurent Bigonville <l dot bigonville at edpnet
dot
Description:
------------
the header location doesn't conform to RFC.
The response header must finish with at least a space character.
Reproduce code:
---------------
header("Location: http://url/);
Expected result:
----------------
According to RFC2616 §6.1 the response message must consist in
"HTTP-Version SP Status-Code SP Reason-Phrase CRLF".
(ie HTTP/1.1 302 Found).
Actual result:
--------------
Currently, php send "HTTP/1.1 302" with even no space at the end of the
response
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39989&edit=1