cURL / Mailing Lists / curl-library / Single Mail


first 94208 bytes corrupted! (Ubuntu 14)

From: Wagner Patriota <>
Date: Fri, 23 May 2014 17:10:02 -0300

A little more of Ubuntu 14...

I have a download just like any other download...

FILE * file = fopen( "/path/to/file", "wb+" );
curl_easy_setopt( curl, CURLOPT_URL, "http://my/url" );
curl_easy_setopt( curl, CURLOPT_WRITEFUNCTION, fwrite );
curl_easy_setopt( curl, CURLOPT_WRITEDATA, file );
curl_easy_perform( curl );

RANDOMLY, I get the first 94208 bytes corrupted! Actually they are all
94208 times 0x00 and the rest of the file is correct!

It seems that libCurl uses a buffer of 94208 bytes.... is this true? any
hint on how only the first "chunk" is coming all null?

should I give more details? or this is a kwon bug?

*Detail:* it only happens on Ubuntu 14. Mac works fine. Windows works fine!

List admin:
Received on 2014-05-23