14 #include <sys/types.h>
25 #define LOCAL_FILE "/tmp/uploadthis.txt"
26 #define UPLOAD_FILE_AS "while-uploading.txt"
27 #define REMOTE_URL "ftp://localhost/" UPLOAD_FILE_AS
28 #define RENAME_FILE_TO "renamed-and-fine.txt"
30 int main(
int argc,
char **argv)
37 struct stat file_info;
45 fstat(hd, &file_info);
CURLcode curl_global_init(long flags)
Globally initializes cURL given a bitwise set of the different features to initialize.
CURLcode curl_easy_perform(CURL *curl)
CURLcode curl_easy_setopt(CURL *curl, CURLoption option,...)
void curl_global_cleanup(void)
Globally cleanup cURL, uses the value of "init_flags" to determine what needs to be cleaned up and ...
int main(int argc, char **argv)
struct curl_slist * curl_slist_append(struct curl_slist *, const char *)
void curl_slist_free_all(struct curl_slist *)
void curl_easy_cleanup(CURL *curl)
CURL * curl_easy_init(void)