Re: [http-state] non-ASCII cookie values (was Re: Closing Ticket 3: Public Suffixes)

Adam Barth <ietf@adambarth.com> Wed, 03 February 2010 10:01 UTC

Return-Path: <adam@adambarth.com>
X-Original-To: http-state@core3.amsl.com
Delivered-To: http-state@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C03AC3A6BDB for <http-state@core3.amsl.com>; Wed, 3 Feb 2010 02:01:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.824
X-Spam-Level:
X-Spam-Status: No, score=-1.824 tagged_above=-999 required=5 tests=[AWL=0.153, 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 7gn3sBwJ1YrO for <http-state@core3.amsl.com>; Wed, 3 Feb 2010 02:01:37 -0800 (PST)
Received: from mail-px0-f186.google.com (mail-px0-f186.google.com [209.85.216.186]) by core3.amsl.com (Postfix) with ESMTP id 1C00B3A6BC7 for <http-state@ietf.org>; Wed, 3 Feb 2010 02:01:37 -0800 (PST)
Received: by pxi16 with SMTP id 16so84287pxi.29 for <http-state@ietf.org>; Wed, 03 Feb 2010 02:02:15 -0800 (PST)
MIME-Version: 1.0
Received: by 10.142.61.20 with SMTP id j20mr1317982wfa.105.1265191335152; Wed, 03 Feb 2010 02:02:15 -0800 (PST)
In-Reply-To: <4EBE9A4F-1F3F-44AB-971C-FB81E2D1B1B9@apple.com>
References: <7789133a1002011014x5d587436j663a73bc92270a65@mail.gmail.com> <7789133a1002022348h57a61611me73b95e110c72ea3@mail.gmail.com> <4B692D7C.900@gmx.de> <7789133a1002030006r1d9b1bech491fa7826587eaff@mail.gmail.com> <7789133a1002030008n4f4e294fn548c359133d7734b@mail.gmail.com> <4B692F9F.7040602@gmx.de> <F3D49FE1-4C8D-457A-B3B8-C3D539938E44@apple.com> <7789133a1002030041o6a544ebbk47e65e131e6d64f3@mail.gmail.com> <7789133a1002030046u43db1125xa4128bc99b0c62f5@mail.gmail.com> <4EBE9A4F-1F3F-44AB-971C-FB81E2D1B1B9@apple.com>
From: Adam Barth <ietf@adambarth.com>
Date: Wed, 3 Feb 2010 02:01:55 -0800
Message-ID: <7789133a1002030201g392e0ac3x4ccf2a5810d3f936@mail.gmail.com>
To: Maciej Stachowiak <mjs@apple.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Cc: http-state@ietf.org
Subject: Re: [http-state] non-ASCII cookie values (was Re: Closing Ticket 3: Public Suffixes)
X-BeenThere: http-state@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Discuss HTTP State Management Mechanism <http-state.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/http-state>, <mailto:http-state-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/http-state>
List-Post: <mailto:http-state@ietf.org>
List-Help: <mailto:http-state-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/http-state>, <mailto:http-state-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 10:01:37 -0000

2010/2/3 Maciej Stachowiak <mjs@apple.com>om>:
> On Feb 3, 2010, at 12:46 AM, Adam Barth wrote:
>> On Wed, Feb 3, 2010 at 12:41 AM, Adam Barth <ietf@adambarth.com> wrote:
>>> On Wed, Feb 3, 2010 at 12:39 AM, Maciej Stachowiak <mjs@apple.com> wrote:
>>>> BTW from code inspection, it looks to me like Safari *will* allow non-ASCII characters in the cookie value if it is a quoted string.
>>>
>>> Thanks.  I'll add a test for this case.
>>
>> I was not able to reproduce this in Snow Leopard using this test case:
>>
>> == charset0004 ==
>> Set-Cookie: foo="春节回家路・春运完全手册"
>> Cookie: foo="春节回家路・春运完全手册"
>>
>> Can you explain what you mean in the form of a test case?
>
> It looks like the code *should* handle this, but I have not done any testing.

It's entirely possible I've screwed up something on my end.

Adam