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

Re: parameter quoting - LC comment on draft-nottingham-http-link-header-07.txt

From: Julian Reschke <julian.reschke@gmx.de>
Date: Thu, 21 Jan 2010 16:08:32 +0100
Message-ID: <4B586DF0.9010201@gmx.de>
To: mjb@asplake.co.uk
CC: Apps Discuss <discuss@apps.ietf.org>, HTTP Working Group <ietf-http-wg@w3.org>
Mike Burrows wrote:
> Hi Julian (and all),
> 
>     Which made have a closer look at existing parameters (sorry for not
>     bringing this up earlier):
> 
>                         | ( "type" "=" type-name "/" subtype-name )
> 
>     I believe this *definitively* needs quoting, as "/" is a separator
>     character in HTTP and thus can not appear in a token.
> 
> 
> But is 'type-name "/" subtype-name' a token?  I didn't interpret as such 
> - in fact I assumed (perhaps erroneously) that it was in fact two tokens 
> separated by "/".
> 
> Regards,
> Mike
> ...

You are right, it's not. But, in general, parameter values either take 
tokens or quoted-strings, so a generic parser of HTTP parameters would 
fail to parse this correctly.

Maybe that's not a big issue in practice, because people use custom 
parser per header field, but it would be good if we could avoid that.

Best regards, Julian
Received on Thursday, 21 January 2010 15:09:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:51:16 GMT