hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject RE: Problem with QueryString
Date Fri, 09 Nov 2007 09:13:20 GMT

On Wed, 2007-11-07 at 10:41 -0800, Agustin Palacios wrote:
> Thanks Roland for you quick response.
> 
> I'm already tried setQueryString, and didn't work
> 
> post.setQueryString("username=e%2poe&password=password"); 
> 
> And
> 
> post.setQueryString("username=e.poe&password= password ");
> 
> 
> 
> The point is why if I write the url in a browser works fine, but when I use httpclient
doesn't.
> 
> Agustín 
> 

Agustín

Capture HTTP requests generated by the browser using a traffic analyzer
or a proxy, customize HttpClient to generate identical (compatible)
requests.

Oleg 


> -----Original Message-----
> From: Roland Weber [mailto:ossfwot@dubioso.net] 
> Sent: Wednesday, November 07, 2007 3:18 PM
> To: HttpClient User Discussion
> Subject: Re: Problem with QueryString
> 
> Hi,
> 
>  the . in the parameter may be encoded as %2e by the
> setQueryString method. That is identical as far as the
> specification is concerned, but maybe your server
> doesn't care about it. Try using the setQueryString(String)
> method instead, performing an encoding that leaves the
> . character unchanged.
> 
> hope that helps,
>   Roland
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message