From:             martin dot bundgaard at gmail dot com
Operating system: Irrelevant
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  header() documentation incorrect.

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 bug report at http://bugs.php.net/?id=33949&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33949&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33949&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33949&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33949&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33949&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33949&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33949&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33949&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33949&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33949&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33949&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33949&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33949&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33949&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33949&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33949&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33949&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33949&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33949&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33949&r=mysqlcfg

Reply via email to