Home | History | Annotate | Download | only in examples

Lines Matching refs:handle

46   /* curl easy handle */
47 CURL *handle;
57 /* initialization of easy handle */
58 handle = curl_easy_init();
59 if(!handle) {
65 curl_easy_setopt(handle, CURLOPT_WILDCARDMATCH, 1L);
68 curl_easy_setopt(handle, CURLOPT_CHUNK_BGN_FUNCTION, file_is_coming);
71 curl_easy_setopt(handle, CURLOPT_CHUNK_END_FUNCTION, file_is_downloaded);
74 curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, write_it);
77 curl_easy_setopt(handle, CURLOPT_CHUNK_DATA, &data);
78 curl_easy_setopt(handle, CURLOPT_WRITEDATA, &data);
80 /* curl_easy_setopt(handle, CURLOPT_VERBOSE, 1L); */
84 curl_easy_setopt(handle, CURLOPT_URL, argv[1]);
86 curl_easy_setopt(handle, CURLOPT_URL, "ftp://example.com/test/*");
89 rc = curl_easy_perform(handle);
91 curl_easy_cleanup(handle);