W3C home > Mailing lists > Public > ietf-http-wg@w3.org > October to December 2007

RE: NEW ISSUE: message-body in CONNECT response

From: Eric Lawrence <ericlaw@exchange.microsoft.com>
Date: Tue, 27 Nov 2007 13:35:40 -0800
To: "Roy T. Fielding" <fielding@gbiv.com>, Jamie Lokier <jamie@shareable.org>
CC: Bjoern Hoehrmann <derhoermi@gmx.net>, Dan Winship <dan.winship@gmail.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Message-ID: <8301DE7F96C0074C8DA98484623D7E5138294DD8A8@DF-MASTIFF-MSG.exchange.corp.microsoft.com>

Wouldn't "Connection: Close" be more appropriate than "Content-Length: 0", as the latter implies that no content follows, while clearly that's not correct if the response headers precede blobs of HTTPS traffic?

A proxy that supports HTTPS tunneling is going to use Connection: close semantics anyway, right?

Vis--vis the idea of responding to a CONNECT request with a HTML 2xx "login" page, it may be worth mentioning that this does not work in IE6 or IE7. A user-agent which does support such responses must be very careful to ensure that the security context of the returned content is corrected to reflect its insecure nature.

Eric Lawrence
Program Manager - IE


-----Original Message-----
From: ietf-http-wg-request@w3.org [mailto:ietf-http-wg-request@w3.org] On Behalf Of Roy T. Fielding
Sent: Tuesday, November 27, 2007 11:03 AM
To: Jamie Lokier
Cc: Bjoern Hoehrmann; Dan Winship; ietf-http-wg@w3.org
Subject: Re: NEW ISSUE: message-body in CONNECT response


On Nov 27, 2007, at 4:32 AM, Jamie Lokier wrote:
> Bjoern Hoehrmann wrote:
>> Do you have any information on how clients treat the response if
>> it has
>> a Transfer-Encoding or Content-Length header? What if the response is
>> not a 2xx one and includes (or lacks) these headers?
>
> I can say for sure that some clients* using CONNECT just check the
> response code, and if it's 2xx they read until the first blank line,
> then assume what follows is the tunnelled data.  Such implementations
> don't parse the headers at all.
>
> * - Not HTTP clients as such, but clients of other protocols which
>     have an option to connect through a HTTP proxy using CONNECT.

The standard requires an empty body on a non-closed connection to be
indicated by one of the two message length indications (CL or TE
chunked).
In this case, the obvious solution is to require "Content-Length: 0" be
included in the header fields of the 200 response.  It doesn't matter
if some clients ignore that field.  What matters is that we don't add
more method-specific parsing of response bodies.

....Roy
Received on Tuesday, 27 November 2007 21:37:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:50:23 GMT