#33949 [Opn->Bgs]: header() documentation incorrect.
| From: | vrana@php.net | Date: | Thu, 04 Aug 2005 08:51:25 +0000 |
| Subject: | #33949 [Opn->Bgs]: header() documentation incorrect. | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969369481@lists.php.net to get a copy of this message | ||
ID: 33949
Updated by: vrana@php.net
Reported By: martin dot bundgaard at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
Don't exchange Content-Location and Location:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30
Previous Comments:
------------------------------------------------------------------------
[2005-08-01 18:16:22] martin dot bundgaard at gmail dot com
Description:
------------
The page http://php.net/header of the documentation states:
"HTTP/1.1 requires an absolute URI as argument to Location: including
the scheme, hostname and absolute path, but some clients accept
relative URIs."
This is incorrect.
According to the HTTP/1.1 specification
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.14),
according to which, relative URIs _are_ acceptable and work the way you
would (probably) expect them to:
"If the Content-Location is a relative URI, the relative URI is
interpreted relative to the Request-URI."
Sincerely,
Martin Bundgaard
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33949&edit=1