Thanks for writing that Oleg! Turns out I was using an alpha version of the 2.0. Upgraded to rc2 and all is now well. Should have thought of it myself!
Thanks, Carmine "Kalnichevski, Oleg" <[EMAIL PROTECTED]> 10/22/2003 10:02 AM Please respond to "Commons HttpClient Project" To: "Commons HttpClient Project" <[EMAIL PROTECTED]> cc: Fax to: Subject: RE: Slow execution of POST method What version of HttpClient are you using? Oleg -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 15:58 To: [EMAIL PROTECTED] Subject: Slow execution of POST method Hello all. Let me know if this isn't the list to ask this. I'm using httpclient to execute a POST request to our mainframe CICS region. The request takes 3 to 4 seconds to complete through httpclient and less then one second via a web page and browser. When I look at the log files, I see this: 109 2003-10-22 09:31:06,591 [main] DEBUG org.apache.commons.httpclient.methods.EntityEnclosingMethod - enter EntityEnclosingMethod.writeRequestBody(HttpState, HttpConnection) 109 2003-10-22 09:31:06,591 [main] DEBUG org.apache.commons.httpclient.methods.EntityEnclosingMethod - Expecting response 109 2003-10-22 09:31:06,591 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.waitForResponse(int) then there are pages and pages of the following: [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.responseAvaliable() ...then after a couple seconds worth of log entries, I see: 3123 2003-10-22 09:31:09,605 [main] DEBUG org.apache.commons.httpclient.HttpConnection - Waiting for response timeout 3123 2003-10-22 09:31:09,605 [main] DEBUG org.apache.commons.httpclient.HttpMethod - Response not available. Send the request body This is a non-authenticated POST method with one name/value pair. Have I done something incorrectly here? I simply create the PostMethod, add a NameValue pair and execute it. Thanks, Carmine Lucarelli ------------------------------------------------------------------------------ This email is confidential. If you are not the intended recipient, please notify the sender by return email and delete this message from your mail box without reading or copying it or any attachments. While Lombard Canada Ltd. runs anti-virus software on all servers and all PCs, it cannot be held responsible for any infected files that you may receive. Lombard Canada Ltd. advises all recipients to virus scan any file attachments. ============================================================================== --------------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]