Hi,Roland,
Thank you for the help! got it.
in httpclient3.x, I used postMethod.setRequestBody(data);
but in httpclient4, I could not find it. I guess that's why I got problem to
use httppost.setParams().
Agree, the documentation does need a lot of improvement....
Best,
Ever
Roland Weber <[EMAIL PROTECTED]> wrote:
Hello Ever,
> Here is the code on client side:
> // prepare parameters
> HttpParams params = new BasicHttpParams();
> params.setParameter("paraName", "test");
HttpParams provides parameters to the HttpClient framework.
If you want send something to the server, put it in an
entity. The one you're looking for is this:
http://hc.apache.org/httpcomponents-client/httpclient/apidocs/org/apache/http/client/methods/UrlEncodedFormEntity.html
> When I use httpclient3.x for this kind of functions, it works fine.
If you call PostMethod.getParams().setParameter(...) in 3.1,
it fails just as miserably ;-)
But we need to improve our documentation, quickly...
cheers,
Roland
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.