curl-library
Re: Ftp upload resume issuw with very big files.
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 26 Aug 2014 23:09:25 +0200 (CEST)
Date: Tue, 26 Aug 2014 23:09:25 +0200 (CEST)
On Tue, 26 Aug 2014, Gisle Vanem wrote:
> Which Windows compiler are you Dushyant using that supports "%llu". MingW?
> Another problem AFAICS:
> long resumeFrom = 0;
> curl_easy_setopt(curlhandle, CURLOPT_HEADERDATA, &resumeFrom);
>
> resumeFrom should be 'long long'. And use _fseeki64() too.
Ah yes. And when using a large enough 'resumeFrom', CURLOPT_RESUME_FROM_LARGE
must be used and not CURLOPT_RESUME_FROM as 'long' on any windows is still
just 32 bit.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-08-26