Re: #250 / #251 (connect bodies)

On 28/10/2010, at 4:48 PM, Willy Tarreau wrote:

> On Thu, Oct 28, 2010 at 02:14:53PM +1100, Mark Nottingham wrote:
>> Because CONNECT is for establishing a connection to a proxy, not a gateway (which is what you're doing).
> That's true but the semantics of the CONNECT method is the closest to what we
> need in WebSocket. After all, we're negociating a bidirectionnal tunnel between
> the browser and the application through the HTTP infrastructure.

This is neither horseshoes nor hand grenades. CONNECT is unique (and badly designed, as a method) because it doesn't go through, it terminates at the proxy. Sending a CONNECT to an origin server makes no sense, and is likely to be blocked by all sorts of infrastructure. 

You'd be better off using Upgrade, which is very much designed for this use case.

Mark Nottingham

Received on Thursday, 28 October 2010 05:54:32 UTC