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
|