Lines Matching refs:curlhandle

70 static int upload(CURL *curlhandle, const char *remotepath,  in upload()  argument
84 curl_easy_setopt(curlhandle, CURLOPT_UPLOAD, 1L); in upload()
86 curl_easy_setopt(curlhandle, CURLOPT_URL, remotepath); in upload()
89 curl_easy_setopt(curlhandle, CURLOPT_SERVER_RESPONSE_TIMEOUT, timeout); in upload()
91 curl_easy_setopt(curlhandle, CURLOPT_HEADERFUNCTION, getcontentlengthfunc); in upload()
92 curl_easy_setopt(curlhandle, CURLOPT_HEADERDATA, &uploaded_len); in upload()
94 curl_easy_setopt(curlhandle, CURLOPT_WRITEFUNCTION, discardfunc); in upload()
96 curl_easy_setopt(curlhandle, CURLOPT_READFUNCTION, readfunc); in upload()
97 curl_easy_setopt(curlhandle, CURLOPT_READDATA, f); in upload()
100 curl_easy_setopt(curlhandle, CURLOPT_FTPPORT, "-"); in upload()
103 curl_easy_setopt(curlhandle, CURLOPT_ACCEPTTIMEOUT_MS, 7000L); in upload()
105 curl_easy_setopt(curlhandle, CURLOPT_FTP_CREATE_MISSING_DIRS, 1L); in upload()
107 curl_easy_setopt(curlhandle, CURLOPT_VERBOSE, 1L); in upload()
120 curl_easy_setopt(curlhandle, CURLOPT_NOBODY, 1L); in upload()
121 curl_easy_setopt(curlhandle, CURLOPT_HEADER, 1L); in upload()
123 r = curl_easy_perform(curlhandle); in upload()
127 curl_easy_setopt(curlhandle, CURLOPT_NOBODY, 0L); in upload()
128 curl_easy_setopt(curlhandle, CURLOPT_HEADER, 0L); in upload()
132 curl_easy_setopt(curlhandle, CURLOPT_APPEND, 1L); in upload()
135 curl_easy_setopt(curlhandle, CURLOPT_APPEND, 0L); in upload()
138 r = curl_easy_perform(curlhandle); in upload()
153 CURL *curlhandle = NULL; in main() local
156 curlhandle = curl_easy_init(); in main()
158 upload(curlhandle, "ftp://user:pass@example.com/path/file", "C:\\file", in main()
161 curl_easy_cleanup(curlhandle); in main()