Re: Set-Cookie and Cookie Optimized Binary Encoding

Martin Thomson <martin.thomson@gmail.com> Fri, 18 January 2013 18:06 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 676DC21F877B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 18 Jan 2013 10:06:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.432
X-Spam-Level:
X-Spam-Status: No, score=-8.432 tagged_above=-999 required=5 tests=[AWL=2.167, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 ZvKJOvEpOyvq for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 18 Jan 2013 10:06:08 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id ADD1721F8770 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 18 Jan 2013 10:06:08 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TwGJP-00026Y-Vl for ietf-http-wg-dist@listhub.w3.org; Fri, 18 Jan 2013 18:05:08 +0000
Resent-Date: Fri, 18 Jan 2013 18:05:07 +0000
Resent-Message-Id: <E1TwGJP-00026Y-Vl@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1TwGJM-00025I-GL for ietf-http-wg@listhub.w3.org; Fri, 18 Jan 2013 18:05:04 +0000
Received: from mail-lb0-f175.google.com ([209.85.217.175]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1TwGJL-0004zL-Q1 for ietf-http-wg@w3.org; Fri, 18 Jan 2013 18:05:04 +0000
Received: by mail-lb0-f175.google.com with SMTP id n3so2622624lbo.34 for <ietf-http-wg@w3.org>; Fri, 18 Jan 2013 10:04:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=NknjnuLoxWWu60XQ8rhZhRo2d2i1Ul/b+mdKDgC7Fmk=; b=l6piql+7Fca+DYVnB7M/YQr2GDBPahh8WriXAgSYp/XeisdhA4jNASmvws7H4ksOrz iL3DEZIEgqSHuvLQrOLGnMQBiQnQ64nbpPrV8bVYS2hk6pfxu5BCNW0KLXAyMyOcE1Qp n4IHNPplSm6imVgkjDBoUF6b49xQ3cWfGH3DHFRYEEuG6K6cK2LlP2jMvk8pQFhoMJG0 GTPKsp3ZXrXsh0Y+Yvbs8L6feY2v9MdxYw6+O0AFB67VDGUnsXEG+UHaozrcw4EwZj1A xRDlEi4P2FHkaRk0PAMOWjBCSIL2K0xiCtbA7VZW2lCpXgxsW50xH/ln5WERpR/S+vBK fx3w==
MIME-Version: 1.0
X-Received: by 10.112.103.167 with SMTP id fx7mr4160484lbb.19.1358532277077; Fri, 18 Jan 2013 10:04:37 -0800 (PST)
Received: by 10.112.57.20 with HTTP; Fri, 18 Jan 2013 10:04:36 -0800 (PST)
In-Reply-To: <CABP7RbcYw4=Lv_JHRAq9HNKQZ9GthE1ZhbXGC4fPna1aD3eZeA@mail.gmail.com>
References: <CABP7RbcYw4=Lv_JHRAq9HNKQZ9GthE1ZhbXGC4fPna1aD3eZeA@mail.gmail.com>
Date: Fri, 18 Jan 2013 10:04:36 -0800
Message-ID: <CABkgnnULTzjbCC8P2YRS_1UkCxp8BW6jdskJ+G1y=uXOFHUztQ@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: James M Snell <jasnell@gmail.com>
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.217.175; envelope-from=martin.thomson@gmail.com; helo=mail-lb0-f175.google.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=-1.750, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TwGJL-0004zL-Q1 c451eedf524f5c79befc677c4c3dc8e0
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Set-Cookie and Cookie Optimized Binary Encoding
Archived-At: <http://www.w3.org/mid/CABkgnnULTzjbCC8P2YRS_1UkCxp8BW6jdskJ+G1y=uXOFHUztQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16009
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 18 January 2013 09:49, James M Snell <jasnell@gmail.com> wrote:
> When translating an optimized Http/2 Set-Cookie to Http/1, if the Binary
> Value Bit is set, the val is Base64 encoded and a new "Binary" flag is added
> to the Http/1 Set-Cookie.

This, I have no problem with, it merely indicates that the header
originated in HTTP/2.0.  What I have a problem with is this:

>  Cookie: key*={base64}

Having the name change is surprising.  Why is it so critical for an
HTTP/1.1 encoded value to be encoded in the binary form in HTTP/2.0?