note 37970 deleted from function.header by sp
| From: | sp@php.net | Date: | Sun, 05 Feb 2006 13:18:57 +0000 |
| Subject: | note 37970 deleted from function.header by sp | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-103035@lists.php.net to get a copy of this message | ||
Note Submitter: isaac at blueapples dot org
----
[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");
?>