hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <http-as...@dubioso.net>
Subject Re: HttpClient and Large File (>2GB) Support
Date Mon, 07 Aug 2006 19:09:26 GMT
Hi Paul,

> 2006/08/07 11:37:18:598 PDT [DEBUG] header - >> "POST
> /AppWeb/MediaBatchUploadControl HTTP/1.1[\r][\n]"
> 2006/08/07 11:37:18:598 PDT [DEBUG] HttpMethodBase - Adding Host request
> header
> 2006/08/07 11:37:18:598 PDT [DEBUG] header - >> "User-Agent: Jakarta
> Commons-HttpClient/3.1-alpha1[\r][\n]"
> 2006/08/07 11:37:18:598 PDT [DEBUG] header - >> "Host:
> test.xxxx.com[\r][\n]"
> 2006/08/07 11:37:18:598 PDT [DEBUG] header - >> "Content-Length:
> 3102473741[\r][\n]"
> 2006/08/07 11:37:18:598 PDT [DEBUG] header - >> "Content-Type:
> multipart/form-data;
> boundary=----------------314159265358979323846[\r][\n]"
> 2006/08/07 11:37:18:598 PDT [DEBUG] header - >> "[\r][\n]"

This does not look like a problem on the client side. As you can see,
the Content-Length header has a positive value over 2GB. However, a
server may be caught off guard by such a value.

In your place, I would get rid of the Content-Length header field
to avoid this problem. Derive a class from MultiPartRequestEntity
and override getContentLength() to return -1, that should do the
trick.
http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/methods/multipart/MultipartRequestEntity.html#getContentLength()


hope that helps,
  Roland

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


Mime
View raw message