You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by fr...@b-rail.be on 2003/04/10 11:08:00 UTC

Re(2): question about addParameter => setReques tBody(N ameValuePair ...)

Thanks a lot Oleg.
It's work fine.

François

Kalnichevski, Oleg  (10/04/03  8:53):
>François,
>
>Use HttpMethod#setQueryString(NameValuePair[]) method to set query parameters.
>
>Oleg
>
>-----Original Message-----
>From: francois.geraerts@b-rail.be [mailto:francois.geraerts@b-rail.be]
>Sent: Thursday, April 10, 2003 10:05
>To: commons-httpclient-dev@jakarta.apache.org
>Subject: question about addParameter => setRequestBody(N ameValuePair
>...)
>
>
>Hi,
>
>I've got a small question. In the version alpha2 , for the class PostMethod,
>there are methods addParameter which are deprecated now and replace
>by the use of setRequestBody. But with the addParameter(java.lang.String
>paramName, java.lang.String paramValue) it seems that the parameters are added
>in the url. Now with the method setRequestBody, the list of parameter are added
>in the body. Is it still possible without the use of the deprecated method, to
>add parameters in the url.
>
>Thanks in advance.
>
>
>François
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
>