>>>> 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 <[email protected]>:
>>> 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

> Vidar Ramdal schrieb:
>> 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?

2009/5/13 Felix Meschberger <[email protected]>:
> 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.

Ah, of course. Parsing the query string into parameters should
probably be the job of the servlet container.
However, from a quick look into Jetty, it doesn't seem to support ';' [1].

[1] 
http://jetty.mortbay.org/jetty/jetty-6/xref/org/mortbay/util/UrlEncoded.html#188

-- 
Vidar S. Ramdal <[email protected]> - http://www.idium.no
Akersgata 16, N-0158 Oslo, Norway
+47 21 531941, ext 2070

Reply via email to