yea...i could figured that out...thx a lot buddy...
-----Original Message----- From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 5:40 PM To: HttpClient User Discussion Subject: Re: Request parameters not getting set 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
