LWS in quoted-string

jouni.miettunen@ccc.fi has asked me whether the LWS in a quoted-string
(specifically, in [Set-]Cookie headers) can contain CRLF.  Initially I
said no, but then I changed my mind.
 
        quoted-string  = ( <"> *(qdtext) <"> )
        qdtext         = <any TEXT except <">>
        TEXT           = <any OCTET except CTLs, but including LWS>

        OCTET          = <any 8-bit sequence of data>
        CTL            = <any US-ASCII control character
                           (octets 0 - 31) and DEL (127)>
        LWS            = [CRLF] 1*( SP | HT )

So a CRLF in a quoted string could appear there, but only as part of a
header continuation, as in
	"part of
 a
 quoted-string"

Does anyone disagree with my analysis?

Dave Kristol

Received on Monday, 24 February 1997 09:43:16 UTC