cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Download windows/linux problem

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Fri, 29 Sep 2006 08:49:26 -0500

On 9/29/06, Thiago Ribeiro <thiagoribeiro_at_gmail.com> wrote:
> I'm trying to create a download client on windows using a linux web server
> with the file but i'm having problems with the file format (CR / LF). The
> libCURL adds end line characteres.
>
>

Try "wb" instead of "w"...
- file = fopen("myFile.exe","w");
+ file = fopen("myFile.exe","wb");

 - Jeff
Received on 2006-09-29