progress callback not working?
Date: Sat, 26 Jan 2002 23:31:03 +0000
I can't get the progress callback to work... The file downloads OK, but
myprogress never gets called. What am I doing wrong?
int myprogress (void *clientp,
printf("%d / %d (%g %%)\n", dltotal, dlnow, dlnow*100.0/dltotal);
curl = curl_easy_init();
outfile = fopen("/tmp/test.curl", "w");
curl_easy_setopt(curl, CURLOPT_FILE, outfile);
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, myprogress);
curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, progressIndicator);
res = curl_easy_perform(curl);
/* always cleanup */
Received on 2002-01-27