hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From francois.gerae...@b-rail.be
Subject Re(2): question about addParameter => setReques tBody(N ameValuePair ...)
Date Thu, 10 Apr 2003 09:08:00 GMT
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
>



Mime
View raw message