curl-library
Re: Problems with Http download under windows
From: Loic Quertenmont <loicus_at_gmail.com>
Date: Mon, 30 Jun 2008 19:32:58 +0200
Date: Mon, 30 Jun 2008 19:32:58 +0200
I have just found the error
FILE * fp = fopen(out_file, "w");
-->
FILE * fp = fopen(out_file, "wb");
Because we are working with binary files and not txt file.
the strange thing is that it works perfectly under linux (strange strange ;) )
Thanks you for help anyway.
Best,
loic
2008/6/30, Joe Nardone <jnardone_at_gmail.com>:
> > curl_easy_setopt(session, CURLOPT_WRITEFUNCTION, fwrite);
>
> What is your implementation of the "fwrite" function?
>
> If this is the c-library "fwrite" then you have not read the docs right.
>
> j
>
Received on 2008-06-30