Home
last modified time | relevance | path

Searched refs:curlhandle (Results 1 - 2 of 2) sorted by relevance

/third_party/curl/docs/examples/
H A Dftpuploadresume.c70 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_FTPPOR in upload()
155 CURL *curlhandle = NULL; main() local
[all...]
H A Dsftpuploadresume.c79 static int sftpResumeUpload(CURL *curlhandle, const char *remotepath, in sftpResumeUpload() argument
97 curl_easy_setopt(curlhandle, CURLOPT_UPLOAD, 1L); in sftpResumeUpload()
98 curl_easy_setopt(curlhandle, CURLOPT_URL, remotepath); in sftpResumeUpload()
99 curl_easy_setopt(curlhandle, CURLOPT_READFUNCTION, readfunc); in sftpResumeUpload()
100 curl_easy_setopt(curlhandle, CURLOPT_READDATA, f); in sftpResumeUpload()
107 curl_easy_setopt(curlhandle, CURLOPT_APPEND, 1L); in sftpResumeUpload()
108 result = curl_easy_perform(curlhandle); in sftpResumeUpload()
124 CURL *curlhandle = NULL; in main() local
127 curlhandle = curl_easy_init(); in main()
129 if(!sftpResumeUpload(curlhandle, remot in main()
[all...]

Completed in 2 milliseconds