Re: #306: does etag value really use quoted-string

On Tue, 26 Jul 2011, Mark Nottingham wrote:

> <http://trac.tools.ietf.org/wg/httpbis/trac/ticket/306>
>
> As discussed in the meeting today, ETags are specified as quoted-string, 
> but many implementations do not treat them as such; e.g., they don't 
> handle \-escaping.

Here are some tests done using INM:

When resource received has ETag: "foo"

Apache 2.2:
INM: "foo"        => 304 OK
INM: "fo\o"       => 200
INM: "foo\"       => 200 OK
INM: "fo\o","foo" => 304 OK
INM: "foo\","foo" => 200 OK

MS IIS 7.5:
INM: "foo"        => 304 OK
INM: "fo\o"       => 200
INM: "foo\"       => 200 OK
INM: "fo\o","foo" => 304 OK
INM: "foo\","foo" => 304 (meaning they are not escaping " in the quoted
                            string)
Jigsaw:
INM: "foo"        => 304 OK
INM: "fo\o"       => 304 OK
INM: "foo\"       => 200 OK
INM: "fo\o","foo" => 304 OK
INM: "foo\","foo" => 200 OK


-- 
Baroula que barouleras, au tiéu toujou t'entourneras.

         ~~Yves

Received on Wednesday, 27 July 2011 13:22:29 UTC