Re: [hybi] Final HTTP responses and WebSocket handshake

Greg Wilkins <gregw@webtide.com> Fri, 11 February 2011 01:48 UTC

Return-Path: <gregw@intalio.com>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 3F0BF3A69AB for <hybi@core3.amsl.com>; Thu, 10 Feb 2011 17:48:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.175
X-Spam-Level:
X-Spam-Status: No, score=-2.175 tagged_above=-999 required=5 tests=[AWL=-0.198, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FdzxERIrcm+u for <hybi@core3.amsl.com>; Thu, 10 Feb 2011 17:48:27 -0800 (PST)
Received: from mail-vx0-f172.google.com (mail-vx0-f172.google.com [209.85.220.172]) by core3.amsl.com (Postfix) with ESMTP id 681423A676A for <hybi@ietf.org>; Thu, 10 Feb 2011 17:48:27 -0800 (PST)
Received: by vxi40 with SMTP id 40so1137956vxi.31 for <hybi@ietf.org>; Thu, 10 Feb 2011 17:48:40 -0800 (PST)
MIME-Version: 1.0
Received: by 10.220.192.201 with SMTP id dr9mr5785483vcb.214.1297388920492; Thu, 10 Feb 2011 17:48:40 -0800 (PST)
Sender: gregw@intalio.com
Received: by 10.220.77.205 with HTTP; Thu, 10 Feb 2011 17:48:40 -0800 (PST)
In-Reply-To: <OFDD4ABE05.D6C65821-ON88257833.00822B82-88257834.0009316B@playstation.sony.com>
References: <OFDD4ABE05.D6C65821-ON88257833.00822B82-88257834.0009316B@playstation.sony.com>
Date: Fri, 11 Feb 2011 12:48:40 +1100
X-Google-Sender-Auth: -WAHg1ATcZvF8uZUgbjTP55gWtc
Message-ID: <AANLkTi=rFieVgfMaBn+pqp_M1bLdf0+Bm0NCApL+Rpih@mail.gmail.com>
From: Greg Wilkins <gregw@webtide.com>
To: Yutaka_Takeda@playstation.sony.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: hybi@ietf.org
Subject: Re: [hybi] Final HTTP responses and WebSocket handshake
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 11 Feb 2011 01:48:28 -0000

On 11 February 2011 12:40,  <Yutaka_Takeda@playstation.sony.com> wrote:
>
> o  Cannot get full benefit out of HTTP protocol during the handshake as it
> does not expect a final response:
>   For example:
>    - Can not redirect WebSocket handshake to another server (for load
> balancing, fail-over, etc.)
>    - Can not perform user authentication (Basic, Digest, etc.) during the
> handshake.
>    - Similarly, 407 authentication cannot be forced by the server.

+1

In the ancient history of this list, I have long argued for exactly this.

Apparently there are some security concerns about browser redirection,
which I never really understood... and even if there are, I don't see
the reason that the protocol should deny the use of non 101 handshake
responses to all clients.  I think the protocol should allow arbitrary
response codes (because it can't actually prevent them being sent by
non WS servers anyway), and then individual clients can decide which
responses they will handle (which may be better discuss in the
appropriate HTML 5 forums regarding the specific websocket API).

cheers