note 37970 modified in function.header by et

From: Date: Sat, 21 Feb 2004 15:02:41 +0000
Subject: note 37970 modified in function.header by et
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-65488@lists.php.net to get a copy of this message
[Edit: The Specification explicitely says that field names are case insensitive. That's an IE bug.] Please refer to the HTTP/1.1 specification carefully when writting the field-name, as it is known that at least IE will fail for at least some headers if they are not capitalized as in the specification. Example, <?php // this will fail header("Content-type: text/plain; charset=utf-8"); // this will succeed header("Content-Type: text/plain; charset=utf-8"); ?> --was-- Please refer to the HTTP/1.1 specification carefully when writting the field-name, as it is known that at least IE will fail for at least some headers if they are not capitalized as in the specification. Example, <?php // this will fail header("Content-type: text/plain; charset=utf-8"); // this will succeed header("Content-Type: text/plain; charset=utf-8"); ?> http://www.php.net/manual/en/function.header.php

« previous php.notes (#65488) next »