curl-users
curlopt_writedata seg faults
Date: Tue, 12 Apr 2005 18:52:54 -0400
Hello,
I wrote a program that downloads mp3s from a site using curl. It
worked fine for months, until I got a new computer, asd install
7.12.3. Now when I call opt WriteData , my program sogfaults. heres
the code:
sermon = fopen(SermonTitle, "w");
CURL *curl2;
CURLcode res1;
curl2 = curl_easy_init();
curl_easy_setopt(curl2, CURLOPT_NOPROGRESS, 0);
curl_easy_setopt(curl2, CURLOPT_URL, command);
curl_easy_setopt(curl2, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt(curl2, CURLOPT_WRITEDATA, sermon);
res1 = curl_easy_perform(curl2);
fclose(sermon);
curl_easy_cleanup(curl2);
commenting out the writeData call the program works, fills stout with
gibberish, but i assume that is default behavior. I tried upgrading to
7.13.2.... no dice.... did the call protocol change?
Thanks!
Paul
Received on 2005-04-13