hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Create parameters into GetMethod body
Date Tue, 17 Apr 2007 13:31:40 GMT
On Tue, 2007-04-17 at 20:59 +0800, wolverine my wrote:
> Hi!
> 
> Sorry, this email was wrongly sent commons-user mailing list!
> 
> I would like to generate a Get method looks like the following:
> 
> GETT http://myserver:8890/dummy HTTP/1.1
> ...
> Connection: keep-alive
> NAME=AnyName
> AGE=56
> 
> The request body has the proprietary parameter pairs (e.g. NAME and
> AGE) that are required by the server.
> 
> How can I generate these parameters into the request body?
> Whata about setParams(HttpMethodParams)?
> 

Wolverine,

HTTP GET requests are not supposed to have a request body. You probably
want to be using HTTP POST instead

Hope this helps

Oleg


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message