Sujan, It is trivial to verify what exactly gets sent across the wire by turning on wire logging. I'd be quite surprised if HttpClient which is known to work with many common HTTP servers and servlet engines failed to work properly exclusively with your code.
http://jakarta.apache.org/commons/httpclient/3.0/logging.html Besides, next time you report a problem please mention the version of HttpClient you are using. Oleg On Wed, May 04, 2005 at 11:44:32AM -0400, Kapadia, Sujan wrote: > > Hello, > > > > I am using the HttpClient library to send HTTP POST requests to an > > HTTP server that accepts connections using Java ServerSocket and > > creates a new Socket for each connection. > > > > I am using PostMethod to create the data and > > HttpClient.executeMethod() to send the POST. I am getting > > unpredictable behavior from this method: Basically, sometimes the > > content gets sent and sometimes it doesn't. However both times the > > Content-Length field contains the length of the content that should be > > there. > > > > On the server, I print out the full request sent and its length > > (header + content). Sometimes, I receive the content and sometimes I > > do not. To also verify this, the length of the header + content > > varies, even though I am sending the same request every time! > > > > Is this a bug in the PostMethod or its parent classes? > > > > Sujan Kapadia > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
