We have an application that uses HttpClient to GET/POST requests, etc.  It 
works fine getting files < 2 Gig, but if we try to GET a zip file that is 
> 2 Gig it doesn't work.  On the first attempt, the GET completes very 
quickly with no errors but the content size is 0 (which is obviously not 
correct).  On other attempts, the GET request may run for 20 or 30 minutes 
while in HTTPClient's requestMethod() before we get error message "The 
server xxxxxx.xxx.com failed to respond with a valid HTTP response".   It 
fails using either HttpClient 3.0.1 or 3.1 (using Java 1.4.2, 1.5, or 
1.6).

Is this a known limitation in HttpClient?  Or, do I need to do something 
different when getting a file > 2G ?

Also, occasionally the same get request fails quickly with the following 
exception:



Error getting target url
java.net.SocketException: Connection reset
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:168)
        at
com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)
        at
com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:723)
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:680)
        at
com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
        at
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
        at
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
        at
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
        at
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
        at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
        at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
        at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
        at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
        at
com.ibm.staf.service.http.WebSession.requestMethod(WebSession.java:1594)
        at
com.ibm.staf.service.http.HTTP.handleSessionMethod(HTTP.java:1602)
        at com.ibm.staf.service.http.HTTP.handleMethod(HTTP.java:1288)
        at com.ibm.staf.service.http.HTTP.acceptRequest(HTTP.java:240)
        at
com.ibm.staf.service.STAFServiceHelper.callService(STAFServiceHelper.java:349)

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   [EMAIL PROTECTED]
(512) 838-8347 or Tieline 678-8347

Reply via email to