13 #ifdef HAVE_SYS_SOCKET_H
14 #include <sys/socket.h>
16 #ifdef HAVE_SYS_TYPES_
17 #include <sys/types.h>
19 #ifdef HAVE_SYS_STAT_H
43 struct stat file_info;
46 const char *buf_1 =
"RNFR 505";
47 const char *buf_2 =
"RNTO 505-forreal";
50 hd = stat(
arg2, &file_info);
56 if(! file_info.st_size) {
57 fprintf(stderr,
"WARNING: file %s has no size!\n",
arg2);
64 hd_src = fopen(
arg2,
"rb");
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,...)
GLuint GLuint GLuint GLuint GLuint GLuint GLuint arg2
void curl_global_cleanup(void)
Globally cleanup cURL, uses the value of "init_flags" to determine what needs to be cleaned up and ...
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)