"Toby A Inkster" <> wrote:
> Kris wrote:
> >> Please notice http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html ,
> >> 14.30 Location : [....] The field value consists of a single absolute URI
> >>
> >> Location = "Location" ":" absoluteURI
> >
> > You are right. Damn, I have been doing it wrongly for so long now then.
> Nah, Kris... don't worry - you're alright. PHP intercepts the header and
> replaces it with one that makes more sense.
Don't count on it. A 'note' can be found here:
http://www.php.net/manual/en/function.header.php
["Note: HTTP/1.1 requires an absolute URI as argument to Location: including
" the scheme, hostname and absolute path, but some clients accept relative
URIs. You can usually use $_SERVER['HTTP_HOST'], $_SERVER['PHP_SELF'] and
dirname() to make an absolute URI from a relative one yourself"]
On my Apache server (2.0.40) with PHP (4.3.4) nothing of the sort happens.
WD