cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Maximum offset value supported by CURLOPT_RESUME_FROM(_LARGE) ?

From: A. Craig West <acraigwest_at_gmail.com>
Date: Thu, 18 Jun 2009 10:19:45 -0400

2009/6/18 Cogentree CT <cogentree_at_gmail.com>:
> I am using CURLOPT_RESUME_FROM_LARGE for a file which is more than 4 GB
> (4441787445 bytes) in size.
> I wanted download to restart; at offset: 4441487245 bytes.
> But, whenever I specify  curl_easy_setopt(curl, CURLOPT_RESUME_FROM_LARGE,
> 4441487245L) it 're-sets' the value.
> (Server log : 06/18/2009 17:48:53 (anonymous
> 192.168.2.197<--192.168.2.196:21) "350 Restart at offset 146819949")
>
> So, I want to know weather that big value is supported by
> CURLOPT_RESUME_FROM(_LARGE) ??

I believe the problem may be that 4441487245L is specifying a long
value, but the number is a long long. Try: 4441487245LL

-Craig
Received on 2009-06-18