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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: martin dot bundgaard at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Sep 10 05:00:01 2025 UTC