note 1304 modified in ref.http by irc-html

From: Date: Sat, 19 Jan 2002 23:50:02 +0000
Subject: note 1304 modified in ref.http by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25535@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. --was-- <p><b>Setting the HTTP Status</b></p> <p>The only way that I've found that works to set the HTTP status is to call <code>header()</code> with the desired HTTP status line <em>verbatim</em>. In particular, the status line should contain no colons (`<samp>:</samp>'). For example:</p> <blockquote><pre> header("HTTP/1.1 304 Not Modified"); </pre></blockquote> <p>See the <a href="http://www.w3.org/Protocols/rfc2068/rfc2068">HTTP specification</a> for more details on what the status line should look like.</p> http://www.php.net/manual/en/ref.http.php

« previous php.notes (#25535) next »