hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: [httpclient] URLEncodedUtils parser delimiters
Date Thu, 06 Jun 2013 12:25:29 GMT
On Wed, 2013-06-05 at 12:48 -0400, Gary Gregory wrote:
> Hi All:
> 
> It seems to me that URLEncodedUtils.DELIM should be:
> 
>     new char[] { '&', ';' };
> 
> instead of:
> 
>     new char[] { '&' };
> 
> All the tests pass with this change. It just seems like an omission.
> 
>
> Also in
> org.apache.http.client.utils.URLEncodedUtils.parse(List<NameValuePair>,
> Scanner, String)
> 
>     scanner.useDelimiter(PARAMETER_SEPARATOR);
> 
> should be:
> 
>     scanner.useDelimiter("[&;]");
> 
> Am I missing something?
> 


Gary

Can you give an example (or better yet, a test case ;-)) of URL encoded
content where semicolon is used as a delimiter? 

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message