hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <be...@u.washington.edu>
Subject Re: HTTPClient PostMethod - postinf form data
Date Fri, 15 Aug 2003 12:26:01 GMT
Odi,

Either should work.  The only difference is one adds and one overwrites.

Mike

On Friday, August 15, 2003, at 03:13 AM, Ortwin Gl├╝ck wrote:

> 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});
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: 
> commons-httpclient-dev-help@jakarta.apache.org
>


Mime
View raw message