Re: [hybi] Last Call: <draft-ietf-hybi-thewebsocketprotocol-10.txt> (The WebSocket protocol) to Proposed Standard

Iñaki Baz Castillo <ibc@aliax.net> Tue, 12 July 2011 07:48 UTC

Return-Path: <ibc@aliax.net>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 79C8621F90E4; Tue, 12 Jul 2011 00:48:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.677
X-Spam-Level:
X-Spam-Status: No, score=-2.677 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZrLKmLmkIOCI; Tue, 12 Jul 2011 00:48:50 -0700 (PDT)
Received: from mail-qw0-f44.google.com (mail-qw0-f44.google.com [209.85.216.44]) by ietfa.amsl.com (Postfix) with ESMTP id A94F121F90D7; Tue, 12 Jul 2011 00:48:50 -0700 (PDT)
Received: by qwc23 with SMTP id 23so3270654qwc.31 for <multiple recipients>; Tue, 12 Jul 2011 00:48:49 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.229.105.95 with SMTP id s31mr4267743qco.228.1310456929704; Tue, 12 Jul 2011 00:48:49 -0700 (PDT)
Received: by 10.229.228.9 with HTTP; Tue, 12 Jul 2011 00:48:49 -0700 (PDT)
In-Reply-To: <4E1BD054.7010103@gmail.com>
References: <20110711140229.17432.23519.idtracker@ietfa.amsl.com> <4E1BD054.7010103@gmail.com>
Date: Tue, 12 Jul 2011 09:48:49 +0200
Message-ID: <CALiegf=JjAYgjQRNh3-5NNvEP-cbAzB4hnuMV2R2WpEo3=1_ew@mail.gmail.com>
From: Iñaki Baz Castillo <ibc@aliax.net>
To: Mykyta Yevstifeyev <evnikita2@gmail.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Cc: hybi@ietf.org, ietf@ietf.org, draft-ietf-hybi-thewebsocketprotocol@tools.ietf.org
Subject: Re: [hybi] Last Call: <draft-ietf-hybi-thewebsocketprotocol-10.txt> (The WebSocket protocol) to Proposed Standard
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/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: Tue, 12 Jul 2011 07:48:51 -0000

2011/7/12 Mykyta Yevstifeyev <evnikita2@gmail.com>:
>>          Sec-WebSocket-Extensions: bar; baz=2
>>
>>    is exactly equivalent to
>>
>>          Sec-WebSocket-Extensions: foo, bar; baz=2
>
> These two examples don't match the aforementioned ABNF; the space before
> "baz=2" should be removed.

Hi, are you sure of that? In SIP protocol (which inherits from HTTP
grammar) a header parameter (;foo=lalala) can contain spaces anywhere
(before/after the ";", before/after the "="). So something like:

   Sec-WebSocket-Extensions: foo  , bar  ; baz = 2

is valid.

However it's not clear for me wheter in this example "baz=2" is a
header param or a param just for the value "bar". In the last case it
would mean a specific header syntax, so spaces could be not allowed.
Could you please point to the ABNF grammar you meant?

Thanks.

-- 
Iñaki Baz Castillo
<ibc@aliax.net>