hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kalnichevski, Oleg" <oleg.kalnichev...@bearingpoint.com>
Subject RE: Slow execution of POST method
Date Wed, 22 Oct 2003 14:20:54 GMT
Carmine,
Just for the record, I believe the troublemaker was so called 'expect: 100-continue' handshake.
Newer releases of HttpClient do not use the handshake unless explicitly instructed to do so
by the user. Apparently the target server (or the proxy server if you use one) has problems
with 'expect: 100-continue' stuff.

Oleg

-----Original Message-----
From: carmine.lucarelli@lombard.ca [mailto:carmine.lucarelli@lombard.ca]
Sent: Wednesday, October 22, 2003 16:13
To: Commons HttpClient Project
Subject: RE: Slow execution of POST method


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" <oleg.kalnichevski@bearingpoint.com>
10/22/2003 10:02 AM
Please respond to "Commons HttpClient Project"

 
        To:     "Commons HttpClient Project" <commons-httpclient-dev@jakarta.apache.org>
        cc: 
        Fax to: 
        Subject:        RE: Slow execution of POST method


What version of HttpClient are you using? 

Oleg

-----Original Message-----
From: carmine.lucarelli@lombard.ca [mailto:carmine.lucarelli@lombard.ca]
Sent: Wednesday, October 22, 2003 15:58
To: commons-httpclient-dev@jakarta.apache.org
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: 
commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: 
commons-httpclient-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: 
commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: 
commons-httpclient-dev-help@jakarta.apache.org







---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Mime
View raw message