Re: Status code and Header("Location: ")
| From: | Rasmus Lerdorf | Date: | Thu, 20 Jun 2002 18:55:22 +0000 |
| Subject: | Re: Status code and Header("Location: ") | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103196@lists.php.net to get a copy of this message | ||
Line 706 of php4/main/SAPI.c implements this. Go ahead and submit a patch
and we will consider it.
-Rasmus
On Thu, 20 Jun 2002, Peter Thoenen wrote:
> PHP Manual says there are two special cases for
> headers, Location and Status. Not to concerned about
> status here, but it states that Location: always
> returns an status code 302. Now HTTP/1.1 depreciates
> 302 since browsers were incorrectly implementing it
> anyways. It was replaces 302 with the MUSTS 303 and
> 304. (304 is the correctly handled 302, and 303 is
> the current incorrect way most browsers implement 302)
>
> Since PHP seems to always return 302, is it possible
> to force HTTP/1.1 compliance and return 303 or 304
> depending on my situation?
>
> -Peter
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>