php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #33949 header() documentation incorrect.
Submitted: 2005-08-01 18:16 UTC Modified: 2005-08-04 10:51 UTC
From: martin dot bundgaard at gmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2005-08-01 18:16 UTC] 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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-04 10:51 UTC] vrana@php.net
Don't exchange Content-Location and Location: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 03 05:01:29 2024 UTC