André Ogrodowski wrote: > FILE *fp = NULL;
> fopen(filePath, "r");
> curl_easy_setopt(handle, CURLOPT_READDATA, fp);
You do not assign the open file descrptor. Change as:
fp = fopen(filePath, "r");
And to prevent leaked descriptors, fclose(fp) after curl_easy_perform().
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
