Status: 204 and PHP's Content-type

From: Date: Wed, 21 Jun 2000 16:43:10 +0000
Subject: Status: 204 and PHP's Content-type
Groups: php.general 
Request: Send a blank email to php-general+get-2510@lists.php.net to get a copy of this message
Hi, Could someone explain to me how to make a script/cgi in php that prints the "Status: 204 No Content" header, but does *NOT* print the "Content-type: .." line. Standard or not, if MSIE 5 can't display the page right because of the Content-type, this feature's useless unless someone figures a way around this one.. For example; this works as it should: --(test.cgi) #!/bin/sh echo "Status: 204" echo "" -- ..but in php it doesn't work because php forces its Content-type to be displayed. I've tried this with non parsed headers, cgi version of php and normal php script. All attempts have failed. I'm using PHP 4.0 and Apache 1.3.12 in RedHat 6.1, if it helps in any way.. Thanks, Timo

« previous php.general (#2510) next »