Thanks Daniel and Gisle.
Just to let you know, I use both gcc ( 4.7.3) and VS 2010.
Output were from VS 2010 but behavior is pretty much same for both.
Also I changed to "%llu" instead of "%d" just to see if it can make any 
difference.


I will try with your suggestions.

 



On Wednesday, 27 August 2014 2:48 AM, Daniel Stenberg <[email protected]> wrote:
 


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.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to