Re: HTTP 1.1 spec (page 15)

Roy T. Fielding:
>
>Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> writes:
>> I wonder what the specification says about ``\)'' within a comment and
>> about ``\"'' within a quoted-string. To my interpretation of the specs
>> the character will be "quoted" but according to the grammar will
>> terminate the element anyhow.
>
>Hmmm, that's odd -- it was supposed to say
>
>    comment        = "(" *( ctext | quoted-pair | comment ) ")"
>
>    quoted-string  = ( <"> *( qdtext | quoted-pair ) <"> )
>
>I guess that should be put on the errata list.

Gack!  HTTP/1.0 says:

|   A string of text is parsed as a single word if it is quoted using
|   double-quote marks.
|
|       quoted-string  = ( <"> *(qdtext) <"> )
|
|       qdtext         = <any CHAR except <"> and CTLs,
|                        but including LWS>
|
|   Single-character quoting using the backslash ("\") character is not
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
|   permitted in HTTP/1.0.
    ^^^^^^^^^^^^^^^^^^^^^^

And I guess that most depoyed header parsers conform to this.  You would get
subtle but ugly incompatibility problems if you introduce single-character
quoting in 1.1.  In my opinion, we can only change the parsing of quoted
strings if we also increase the major version number.  The 1.1 grammar is
fine, the text is in error.

>.....Roy

Koen.

Received on Wednesday, 11 December 1996 13:23:16 UTC