commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ravi Mutyala <>
Subject Re: [httpclient] problem in sending the correct http request
Date Wed, 02 Jun 2004 07:24:31 GMT

it worked!! thanx a lot.
I used the setReqeustBody() instead of addParameter() to avoid the 
encoding and it went thru.

Ravi wrote:

>Per default HTTP POST uses so called URL-encoding to encode the request body.
>To override the default behaviour use PostMethod#setRequestBody(String)
>  "XMLMSG=<A1> <B1> abc </B1> <B1> bd</B1> <B2> 1
</B2> </A1>");
>httppost.setRequestHeader("Content-type", "TEXT/PLAIN");
>Hope this helps

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message