cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Beginner trying to download a file

From: J. Anderson <lordmaiku_at_gmail.com>
Date: Sun, 14 Jun 2009 15:09:12 -0400

> You don't say what version of libcurl you're using, or what OS you're
> running on,
> but if you happen to be using MS-Windows, you'll need to fopen() the file using
> "wb" instead of just "w"

This turned out to be the problem. I completely forgot about the
"b"inary flag for fopen(). Thanks!
Received on 2009-06-14