curl-library
RE: FTP Error 425
From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Mon, 9 Mar 2015 10:14:27 +0100
Date: Mon, 9 Mar 2015 10:14:27 +0100
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
Received on 2015-03-09