W3C home > Mailing lists > Public > ietf-http-wg@w3.org > July to September 2013

Re: UTF-8 or ASCII Header Names?

From: James M Snell <jasnell@gmail.com>
Date: Tue, 13 Aug 2013 15:39:53 -0700
Message-ID: <CABP7RbcvP-Vy8Z5X56bRBxCa5LHt8fx8FZ5fz+B57nrRXS4kFg@mail.gmail.com>
To: Fred Akalin <akalin@google.com>
Cc: Martin Thomson <martin.thomson@gmail.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
-1, that's certainly not the recommendation I was making.

Header field names ought not be UTF-8... Allowing UTF-8 in header
field values is extremely valuable.

- James

On Tue, Aug 13, 2013 at 3:36 PM, Fred Akalin <akalin@google.com> wrote:
> I'm definitely for removing any reference to UTF-8 in the header compression
> spec, if only to avoid the giant can of worms it introduces with
> lower-casing.
>
>
> On Tue, Aug 13, 2013 at 3:26 PM, James M Snell <jasnell@gmail.com> wrote:
>>
>> Thanks for catching the missing ":" ... and yes, [":"] 1*header-char
>> is a much better choice.
>>
>> -1 to adding any "nuance" or transformations, however. Let's be clear
>> and strict about this: an HTTP/2 header field name ought to always
>> match... period.
>>
>>     LOWERALPHA = %x61-7A
>>     header-char = "!" / "#" / "$" / "%" / "&" / "'" /
>>                   "*" / "+" / "-" / "." / "^" / "_" /
>>                   "`" / "|" / "~" / DIGIT / LOWERALPHA
>>     header-name = [":"] 1*header-char
>>
>> We don't need any other options or "nuance" here.
>>
>> - James
>>
>>
>> On Tue, Aug 13, 2013 at 3:20 PM, Martin Thomson
>> <martin.thomson@gmail.com> wrote:
>> > On 13 August 2013 23:08, James M Snell <jasnell@gmail.com> wrote:
>> >> Recommend that we specify in both the HTTP/2 and Header Compression
>> >> spec that header names MUST conform to:
>> >>
>> >>     LOWERALPHA = %x61-7A
>> >>     header-name = "!" / "#" / "$" / "%" / "&" / "'" /
>> >>                   "*" / "+" / "-" / "." / "^" / "_" /
>> >>                   "`" / "|" / "~" / DIGIT / LOWERALPHA
>> >>
>> >> Which is the all-lower-case equivalent to the header-name definition
>> >> currently in httpbis.
>> >
>> > Actually, it's:
>> >     LOWERALPHA = %x61-7A
>> >     header-char = "!" / "#" / "$" / "%" / "&" / "'" /
>> >                   "*" / "+" / "-" / "." / "^" / "_" /
>> >                   "`" / "|" / "~" / DIGIT / LOWERALPHA
>> >     header-name = (":" / header-char) *header-char
>> >
>> > though this might be better:
>> >     header-name = [":"] 1*header-char
>> >
>> > and if we're feeling especially generous:
>> >     header-name = 1*(":" / header-char)
>> >
>> > This sounds reasonable - though I think that this needs to be a little
>> > more nuanced.  Header compression might describe a transformation that
>> > produces the limited set of values as described above, but the *input*
>> > to header compression needs to be a valid HTTP header (or a special
>> > HTTP/2.0 :-header).
>>
>
Received on Tuesday, 13 August 2013 22:40:40 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:14 UTC