commons-user mailing list archives

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

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

rgds
,
Ravi
olegk@bluewin.ch wrote:

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


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


Mime
View raw message