cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: first 94208 bytes corrupted! (Ubuntu 14)

From: Ray Satiro <raysatiro_at_yahoo.com>
Date: Fri, 23 May 2014 13:36:57 -0700 (PDT)

Can you please give a short self contained example that can be compiled outright? On Friday, May 23, 2014 4:17 PM, Wagner Patriota <wagner.patriota@gmail.com> wrote: 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 0x00... 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: 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
Received on 2014-05-23