Re: header() refresh vs location
| From: | Chris Shiflett | Date: | Tue, 14 Oct 2003 19:29:55 +0000 |
| Subject: | Re: header() refresh vs location | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166110@lists.php.net to get a copy of this message | ||
--- Matt Babineau <list_php@criticalcode.com> wrote:
> In this example, index.php would be a violation i think. however you
> don't need to provide an absolute URL, you could provide / or ever
> /index.php
>
> I say this because the header specifying the Host had already been sent.
In HTTP/1.1, the Host header is required, but not in HTTP/1.0. Also, the
specification is not for us to decide; it has already been written. The
Location header requires an absolute URL.
Chris
=====
My Blog
http://shiflett.org/
HTTP Developer's Handbook
http://httphandbook.org/
RAMP Training Courses
http://www.nyphp.org/ramp