W3C home > Mailing lists > Public > ietf-http-wg-old@w3.org > January to April 1997

LWS in quoted-string

From: Dave Kristol <dmk@research.bell-labs.com>
Date: Mon, 24 Feb 97 12:35:43 EST
Message-Id: <9702241735.AA13809@zp>
To: http-wg@cuckoo.hpl.hp.com
Cc: jouni.miettunen@ccc.fi
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 EST

This archive was generated by hypermail pre-2.1.9 : Wednesday, 24 September 2003 06:32:30 EDT