

Doubt regarding quoted-pair

From: John Mani <John.Mani@Eng.Sun.COM>
Date: Fri, 12 Mar 1999 01:33:02 GMT
Message-Id: <36E86EBA.554DD56A@eng.sun.com>
To: http-wg@cuckoo.hpl.hp.com
If a header (say, Content-Disposition) contains a quoted-string that
includes a quoted-pair,
how should the quoted-pair sequence be treated - if the character
following the backslash is
NOT a "special" character.

Example:  Given the string "C:\dir\file.txt", within a
Content-Disposition header, if I use the
RFC822 parsing rules, I'll end up with "C:dirfile.txt", since as per
RFC822 (actually from:
the rfc822 update - draft-ietf-drums-msg-fmt):

3.2.2 Quoted characters

Some characters are reserved for special interpretation, such as
lexical tokens. To permit use of these characters as uninterpreted data,
quoting mechanism is provided.

quoted-pair     =       ("\" text) / obs-qp

Where any quoted-pair appears, it should be interpreted as the text
character alone.
I think in this case, the string should be :C:\\dir\\file.txt

I don't see anything in RFC 2068 regarding this, leaving this case
ambiguos - I think.

Comments ? (I'm not in this mailing list, so include my email address as

Received on Tuesday, 23 March 1999 15:43:01 EST
