hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kalnichevski, Oleg" <oleg.kalnichev...@bearingpoint.com>
Subject RE: question about addParameter => setRequestBody(N ameValuePair ...)
Date Thu, 10 Apr 2003 07:53:44 GMT
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


Mime
View raw message