RE: HttpClient GET request for a file 2G doesn't work

2008-03-11 Thread Eric Cantonna
Maybe I'm saying something stupid but 2G is awfully close to maxint. Maybe there is a count of bytes read/available somewhere that use an int and should use a long instead. Just an idea that crossed my mind. _ Comme 9 millions

RE: HttpClient GET request for a file 2G doesn't work

2008-03-11 Thread sjlucas
Eric Cantonna wrote: Maybe I'm saying something stupid but 2G is awfully close to maxint. Maybe there is a count of bytes read/available somewhere that use an int and should use a long instead. Just an idea that crossed my mind. Right. But since it's HTTPClient's executeMethod()

RE: HttpClient GET request for a file 2G doesn't work

2008-03-11 Thread Oleg Kalnichevski
On Tue, 2008-03-11 at 11:38 -0700, sjlucas wrote: Eric Cantonna wrote: Maybe I'm saying something stupid but 2G is awfully close to maxint. Maybe there is a count of bytes read/available somewhere that use an int and should use a long instead. Just an idea that crossed my mind.

Re: HttpClient GET request for a file 2G doesn't work

2008-03-07 Thread sjlucas
quote Some servers (IIS) require the client to use chunked file transfer encoding to transfer files larger than 2G. If you are not using chunked try that Could you point me to an example of how to specify to use chunked file transfer with HttpClient on a GET request? -- View this message

Re: HttpClient GET request for a file 2G doesn't work

2008-03-07 Thread Roland Weber
sjlucas wrote: Could you point me to an example of how to specify to use chunked file transfer with HttpClient on a GET request? It should be the default if you are connecting to the server using HTTP/1.1. Chunked encoding does not exist in HTTP/1.0. hope that helps, Roland

Re: HttpClient GET request for a file 2G doesn't work

2008-03-06 Thread David Motes
Is this a known limitation in HttpClient? Or, do I need to do something different when getting a file 2G ? Some servers (IIS) require the client to use chunked file transfer encoding to transfer files larger than 2G. If you are not using chunked try that