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

Mykyta Yevstifeyev <evnikita2@gmail.com> Tue, 12 July 2011 09:16 UTC

Return-Path: <evnikita2@gmail.com>
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 8C26221F90CA; Tue, 12 Jul 2011 02:16:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.351
X-Spam-Level:
X-Spam-Status: No, score=-3.351 tagged_above=-999 required=5 tests=[AWL=-0.052, BAYES_00=-2.599, 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 O9mhAjsuB1RT; Tue, 12 Jul 2011 02:16:02 -0700 (PDT)
Received: from mail-bw0-f44.google.com (mail-bw0-f44.google.com [209.85.214.44]) by ietfa.amsl.com (Postfix) with ESMTP id D83A221F90B0; Tue, 12 Jul 2011 02:16:00 -0700 (PDT)
Received: by bwb17 with SMTP id 17so4540117bwb.31 for <multiple recipients>; Tue, 12 Jul 2011 02:16:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=i8lpE6kjWU6HpGGSGZr6AXsG0s4kWv0tCVTrhB6ZxaM=; b=KNXwPEjlnU1F7xkt8FON7xuyeoJ8cfttBHYosITz9TI1zVDMycLqcFwRio+brZQGDR 0jdmM7DkM2UeQGLZsqSGWv95ZgkeT3WEbf3iDVEEn71enJx13uCTfHqdgsTRspUay142 nT8bGhmRXr9CE5Jd7+ECA68js6Zh/VP7x+pNE=
Received: by 10.205.65.133 with SMTP id xm5mr2217690bkb.396.1310462159874; Tue, 12 Jul 2011 02:15:59 -0700 (PDT)
Received: from [127.0.0.1] ([195.191.104.224]) by mx.google.com with ESMTPS id lb15sm1295404bkb.34.2011.07.12.02.15.58 (version=SSLv3 cipher=OTHER); Tue, 12 Jul 2011 02:15:59 -0700 (PDT)
Message-ID: <4E1C10FB.6020404@gmail.com>
Date: Tue, 12 Jul 2011 12:16:43 +0300
From: Mykyta Yevstifeyev <evnikita2@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0
MIME-Version: 1.0
To: =?UTF-8?B?ScOxYWtpIEJheiBDYXN0aWxsbw==?= <ibc@aliax.net>
References: <20110711140229.17432.23519.idtracker@ietfa.amsl.com> <4E1BD054.7010103@gmail.com> <CALiegf=JjAYgjQRNh3-5NNvEP-cbAzB4hnuMV2R2WpEo3=1_ew@mail.gmail.com>
In-Reply-To: <CALiegf=JjAYgjQRNh3-5NNvEP-cbAzB4hnuMV2R2WpEo3=1_ew@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Mailman-Approved-At: Tue, 12 Jul 2011 02:16:30 -0700
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 09:16:02 -0000

12.07.2011 10:48, Iñaki Baz Castillo wrote:
> 2011/7/12 Mykyta Yevstifeyev<evnikita2@gmail.com>om>:
>>>           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.
No, its' everything OK with this issue.  LWS is allowed between 
<extension> productions in the header, but not between the parts of this 
productions: <extension-token>s and <extension-param>s.  See 
http://tools.ietf.org/html/rfc2616#section-2.1 and 
http://tools.ietf.org/html/rfc2616#section-2.1.

>
> 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?
This was meant to be the parameter for the "bar", as far as I understand.

Mykyta
>
> Thanks.
>