note 1304 deleted from ref.http by sander
| From: | sander@php.net | Date: | Sun, 07 Apr 2002 12:38:48 +0000 |
| Subject: | note 1304 deleted from ref.http by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-28892@lists.php.net to get a copy of this message | ||
Setting the HTTP Status
The only way that I've found that works to set the HTTP status is to call header() with
the desired HTTP status line verbatim.
In particular, the status line should contain no colons
(`:'). For example:
header("HTTP/1.1 304 Not Modified");
See the http://www.w3.org/Protocols/rfc2068/rfc2068
HTTP specification for more details on what the status line should look like.