hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ortwin Gl├╝ck <ortwin.glu...@nose.ch>
Subject Re: HTTPClient PostMethod - postinf form data
Date Fri, 15 Aug 2003 07:13:55 GMT
Anu,

you should use authpost.addParameters(new NameValuePair[] {action, url})

and not setRequestBody.

HTH

Odi

>  
>   NameValuePair action   = new NameValuePair("url", "Books");
>   NameValuePair url      = new NameValuePair("field-keywords", "java");
>   authpost.setRequestBody(new NameValuePair[] {action, url});


Mime
View raw message