hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rezaei, Mohammad A." <mohammad.rez...@gs.com>
Subject Delaying headers when Expect-Continue not set
Date Wed, 23 Feb 2005 16:31:43 GMT
In HttpMethodBase, the http headers are flushed before the content is
written. Is there any reason for this other than Expect-Continue handling?
The reason I ask is that for small POST requests, this generates twice as
many network packets as necessary. If this is just for Expect-Continue
handling, would it be possible to move the flush inside the handling code?
That is, 

        // make sure the status line and headers have been sent

Moves into the if statement:

        if ((expectvalue != null) 
         && (expectvalue.compareToIgnoreCase("100-continue") == 0)) {
            if (ver.greaterEquals(HttpVersion.HTTP_1_1)) {


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

View raw message