W3C home > Mailing lists > Public > ietf-http-wg@w3.org > January to March 1999

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
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/376
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
delimiting
lexical tokens. To permit use of these characters as uninterpreted data,
a
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
well)

-john
Received on Tuesday, 23 March 1999 07:59:40 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 2 February 2023 18:43:06 UTC