#26990 [Opn->Fbk]: PHP CGI does not handle Status header.
| From: | sniper@php.net | Date: | Wed, 21 Jan 2004 19:36:22 +0000 |
| Subject: | #26990 [Opn->Fbk]: PHP CGI does not handle Status header. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-53713@lists.php.net to get a copy of this message | ||
ID: 26990
Updated by: sniper@php.net
Reported By: progcom@php.net
-Status: Open
+Status: Feedback
Bug Type: CGI related
Operating System: FreeBSD 5.2
PHP Version: 4.3.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2004-01-21 06:58:33] progcom@php.net
Description:
------------
CGI version PHP does not handle 'Status: xxx' header.
By CGI 1.1 Spec, header('Status: xxx') can produce http response code.
(I can use 'HTTP/1.0 xxx', but I think CGI version should work with
'Status: xxx')
on http://hoohoo.ncsa.uiuc.edu/cgi/out.html ,
Status
This is used to give the server an HTTP/1.0 status line to send to the
client. The format is nnn xxxxx, where nnn is the 3-digit status code,
and xxxxx is the reason string, such as "Forbidden".
Reproduce code:
---------------
<?php
header('Status: 303 See Other');
header('Location: http://example.org');
?>
Expected result:
----------------
Status: 303
Content-type: text/html
Location: http://example.org
Actual result:
--------------
Status: 302
Content-type: text/html
Status: 303 See Other
Location: http://example.org
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26990&edit=1