Re: Percent encoding

>> Thanks, the note is indeed really useful. For all the following
>> statements, do you think it is possible to indicate a suitable reference?
>
> Do you mean like a reference in the spec?

I meant a pointer to a document whenever applicable ...

>> * "&" is the only primary separator for name-value pairs, but some
>> server-side languages also treat ";" as a separator.
>
> CGI Perl also accepts ";" as a separator.

... So let's add a pointer to CGI Perl doc.

>> * name-value pairs with invalid percent-encoding should be ignored,
>> but some server-side languages silently mask such errors.
>
> Of the tested, only JSP outright rejected invalid input like our spec
> does. Of ASP, PHP and Perl CGI, some removed the invalid part and some
> simply left them intact, but I can't remember exactly which did which.

Useful warning indeed

>> * The "+" character should not be treated specially, but some
>> server-side languages replace it with a space (" ") character.
>
> All of the tested languages do this, it's just how query fragments are
> used. We could duplicate this behavior, but since we actually have
> syntax that requires using "+" (timezones) it would be quite annoying.

Useful warning indeed

>> * Multiple occurrences of the same name must be preserved, but some
>> server-side languages only preserve the last occurrence.
>
> Here again I can't remember the exact behavior of each language. I'm
> pretty sure PHP and CGI Perl only preserve the last occurence, while JSP
> has a list. I'm not sure about ASP and ASP.NET.
>
> If it essential that the exact results are available I could try digging
> out the scripts from the VirtualBox images I set up for testing.

I think it is fine like that.

   Raphaël

-- 
Raphaël Troncy
EURECOM, Multimedia Communications Department
2229, route des Crêtes, 06560 Sophia Antipolis, France.
e-mail: raphael.troncy@eurecom.fr & raphael.troncy@gmail.com
Tel: +33 (0)4 - 9300 8242
Fax: +33 (0)4 - 9000 8200
Web: http://www.eurecom.fr/~troncy/

Received on Tuesday, 2 March 2010 22:34:20 UTC