Lines Matching refs:curlhandle

68 static int upload(CURL *curlhandle, const char *remotepath,  in upload()  argument
82 curl_easy_setopt(curlhandle, CURLOPT_UPLOAD, 1L); in upload()
84 curl_easy_setopt(curlhandle, CURLOPT_URL, remotepath); in upload()
87 curl_easy_setopt(curlhandle, CURLOPT_FTP_RESPONSE_TIMEOUT, timeout); in upload()
89 curl_easy_setopt(curlhandle, CURLOPT_HEADERFUNCTION, getcontentlengthfunc); in upload()
90 curl_easy_setopt(curlhandle, CURLOPT_HEADERDATA, &uploaded_len); in upload()
92 curl_easy_setopt(curlhandle, CURLOPT_WRITEFUNCTION, discardfunc); in upload()
94 curl_easy_setopt(curlhandle, CURLOPT_READFUNCTION, readfunc); in upload()
95 curl_easy_setopt(curlhandle, CURLOPT_READDATA, f); in upload()
98 curl_easy_setopt(curlhandle, CURLOPT_FTPPORT, "-"); in upload()
99 curl_easy_setopt(curlhandle, CURLOPT_FTP_CREATE_MISSING_DIRS, 1L); in upload()
101 curl_easy_setopt(curlhandle, CURLOPT_VERBOSE, 1L); in upload()
116 curl_easy_setopt(curlhandle, CURLOPT_NOBODY, 1L); in upload()
117 curl_easy_setopt(curlhandle, CURLOPT_HEADER, 1L); in upload()
119 r = curl_easy_perform(curlhandle); in upload()
123 curl_easy_setopt(curlhandle, CURLOPT_NOBODY, 0L); in upload()
124 curl_easy_setopt(curlhandle, CURLOPT_HEADER, 0L); in upload()
128 curl_easy_setopt(curlhandle, CURLOPT_APPEND, 1L); in upload()
131 curl_easy_setopt(curlhandle, CURLOPT_APPEND, 0L); in upload()
134 r = curl_easy_perform(curlhandle); in upload()
149 CURL *curlhandle = NULL; in main() local
152 curlhandle = curl_easy_init(); in main()
154 upload(curlhandle, "ftp://user:pass@example.com/path/file", "C:\\file", in main()
157 curl_easy_cleanup(curlhandle); in main()