cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: 2+ GB files in libcurl

From: Mark Wick <mwick_at_cisco.com>
Date: Wed, 24 Jan 2007 12:46:12 -0700

Daniel,

See below. Hope my answers help.

Thanks,

Mark

Daniel Stenberg wrote:
> On Tue, 23 Jan 2007, Mark Wick wrote:
>
>> I am using libcurl to get a 2+GB file. I am using the progress
>> callback and it does not handle a file size >2GB across the interface.
>
> What libcurl version on what platform? What protocol? The progress
> callback gets doubles, so it has no problem interface-wise.
libcurl is 7.10.6-8. Platform is HP ProLiant DL320 G3. Using ftp. This is
RedHat RHEL3.

I must be doing something wrong cause it is wrapping the doubles :(

>
>> The library can handle the file (however, it returns an error code also).
>
> When does it return an error and what error?
The error is returned when the ftp "get" operation is complete for a file >2GB.
  The error is CURLE_PARTIAL_FILE.
>
>> Is there a way around this? An interface call I am missing?
>
> libcurl supports large files since a long time. There's a bug in 7.16.0
> though that breaks (most) 4GB+ file downloads.
>
Received on 2007-01-24