You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Marcin Kudla <ma...@googlemail.com> on 2009/04/22 10:50:00 UTC

POST parameters problem

Hello

I want add my custom POST parameter to request.
I use org.apache.http.client.HttpClient for it and code fragment looks like
:

HttpClient httpClient = new DefaultHttpClient();
HttpUriRequest request = new new HttpPost("http://some.uri");
request.getParams().setParameter("name", "value");
httpClient.execute(request);

But when it executes custom parameter doesn't send.
Any suggestion will be highly appreciated.

Regards
Marcin