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: Httppost - BasicNameValuePair issue
Date Thu, 28 Oct 2010 14:53:08 GMT
On Thu, 2010-10-28 at 14:06 +0200, Andreas Ernst wrote:
> Hi,
> 
> i try to post datas to a page.
> 
> Wireshark say Firefox uses this value: dnn$dnnSEARCH$txtSearch.
> With httpclient it is: dnn%24dnnSEARCH%24txtSearch.
> 
> I have no glue if this is the issue, that i did not get the expected 
> result, but how to set up that the value is like in Firefox.
> 
> List<NameValuePair> nvps = new ArrayList<NameValuePair>();
> nvps.add(new BasicNameValuePair("dnn$ctr5516$Search$txtSearch", ""));
> httppost.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8));
> 
> TIA
> Andreas


You have to build a custom HttpEntity implementation similar to
UrlEncodedFormEntity if you want to use a non-standard content encoding.

Oleg


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


Mime
View raw message