RE: [PHP-DEV] Setting HTTP results code vs. HTTP type
| From: | Uwe Schindler | Date: | Tue, 01 May 2007 11:22:13 +0000 |
| Subject: | RE: [PHP-DEV] Setting HTTP results code vs. HTTP type | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-29126@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Rasmus Lerdorf [mailto:rasmus@lerdorf.com]
> Sent: Tuesday, May 01, 2007 2:22 AM
> To: Oliver Block
> Cc: internals@lists.php.net
> Subject: Re: [PHP-DEV] Setting HTTP results code vs. HTTP type
>
> Oliver Block wrote:
> > Am Dienstag, 1. Mai 2007 01:49 schrieb Rasmus Lerdorf:
> >
> >> This came up many times on the Apache lists years ago, and Roy Fielding
> >> who wrote that spec repeatedly said it was fine to reply with a 1.1
> >> response to a 1.0 request.
> >
> > Did he give any rationale for his view?
>
> Go read the archives. And note that I only said it was fine to respond
> with a 1.1 reply, that doesn't mean it is fine to send an encoding the
> client doesn't support.
And that's exactly what other web servers also do:
I come from Sun One Web Server 6.1 and 7.0), so I can tell what they do:
They respond always with HTTP/1.1 but if the request came in with HTTP/1.0
they do not use chunked encoding for the reply and use "Connection: close".
Uwe