On Wed, 2006-02-01 at 20:55 +0530, Ramit Bhardwaj wrote: 
> Hi guys,
>  
> I am using HTTPcommons client  2.0.2 version. My goal is to send a binary 
> data to a servlet and also a request parameter (similar to 
> request.setAttribute in servlets). i am 
> doing postMethod.addParameter("key","value") and then 
> post.setRequestBody(binary-stream).
>  
> I m getting the binary data but i am not getting the value which i set using 
> addParameter...what could be the reason..is my approach correct ...how do i 
> achieve my goal
>  

Ramit,

Form parameters always get overwritten by the post.setRequestBody method
because they are transmitted in the request body. Use URL query
parameters instead.

Oleg

> 
> Regards 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to