Hi,

Vidar Ramdal schrieb:
>>> I need to create more properties with HTTP request. When I send HTTP request
>>> with query string, which contents only one property, it's ok.
>>> I don't know, how can I separate more properties. (I tried coma and
>>> semicolon )
> 
> 2009/5/12 Tobias Bocanegra <tri...@day.com>:
>> try  '&' as delimiter.
>>
>> see: http://en.wikipedia.org/wiki/Query_string
>> and: 
>> https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Functions/encodeURIComponent
> 
> Actually, the semicolon is recommended by W3C [1], as the use of '&'
> often brings along some interesting escaping problems:
> 
> "We recommend that HTTP server implementors, and in particular, CGI
> implementors support the use of ";" in place of "&" to save authors the
> trouble of escaping "&" characters in this manner."
> 
> So maybe we should support ';' as a delimiter, in addition to '&'.
> WDYT?

Sure. Now it of course depends on how is parsing the parameters. In the
case of URL paramaters and application/x-www-form-urlencoded POST data,
it is the servlet container parsing the parameters and we do nothing
about it.

Regards
Felix

Reply via email to