#27026 [Opn->Asn]: header('HTTP/1.0 200 OK') never sent when explicitly requested

From: Date: Sun, 25 Jan 2004 05:22:17 +0000
Subject: #27026 [Opn->Asn]: header('HTTP/1.0 200 OK') never sent when explicitly requested
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53846@lists.php.net to get a copy of this message
 ID:               27026
 Updated by:       sniper@php.net
 Reported By:      achowe at snert dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         CGI related
-Operating System: Windows
+Operating System: *
-PHP Version:      4.3.4
+PHP Version:      4CVS, 5CVS
-Assigned To:      
+Assigned To:      edink
 New Comment:

From cgi_main.c CVS log:

revision 1.190.2.4
date: 2002/11/22 13:50:40;  author: edink;  state: Exp;  lines: +10 -7
Don't send default http status (200) (Thanks to Sascha Schumann for
idea).

Edin, can you handle this report please. :)



Previous Comments:
------------------------------------------------------------------------

[2004-01-23 15:42:27] achowe at snert dot com

Description:
------------
While testing a 3rd party HTTP server (under Cygwin) that expects nph
CGI behaviour, I have the following script:

#!/usr/local/bin/php-cgi
<?
	header("HTTP/1.0 200 OK");
	phpinfo();
?>

When called, the "HTTP/1.0 200 OK" line is never sent. If I rewrite the
script to change the status code:

#!/usr/local/bin/php-cgi
<?
	header("HTTP/1.0 300 OK");
	phpinfo();
?>

Only then does the "HTTP/1.0 300 OK" appear as expected.  This result
can be verified by a telnet connection to the server or on the command
line.







Expected result:
----------------
If I explicitly set: 	

    header("HTTP/1.0 200 OK");

then I expect to see it in the output as the first line.




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27026&edit=1


Thread (6 messages)

« previous php.bugs (#53846) next »