Lines Matching defs:handle

80   CURL *handle = curl_easy_init();
83 curl_easy_setopt(handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2TLS);
84 curl_easy_setopt(handle, CURLOPT_URL, url);
90 curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, grow_buffer);
91 curl_easy_setopt(handle, CURLOPT_WRITEDATA, mem);
92 curl_easy_setopt(handle, CURLOPT_PRIVATE, mem);
95 curl_easy_setopt(handle, CURLOPT_ACCEPT_ENCODING, "");
96 curl_easy_setopt(handle, CURLOPT_TIMEOUT, 5L);
97 curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1L);
99 curl_easy_setopt(handle, CURLOPT_REDIR_PROTOCOLS_STR, "http,https");
100 curl_easy_setopt(handle, CURLOPT_AUTOREFERER, 1L);
101 curl_easy_setopt(handle, CURLOPT_MAXREDIRS, 10L);
103 curl_easy_setopt(handle, CURLOPT_TIMEOUT_MS, 20000L);
105 curl_easy_setopt(handle, CURLOPT_CONNECTTIMEOUT_MS, 2000L);
107 curl_easy_setopt(handle, CURLOPT_MAXFILESIZE_LARGE,
109 curl_easy_setopt(handle, CURLOPT_COOKIEFILE, "");
110 curl_easy_setopt(handle, CURLOPT_FILETIME, 1L);
111 curl_easy_setopt(handle, CURLOPT_USERAGENT, "mini crawler");
112 curl_easy_setopt(handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
113 curl_easy_setopt(handle, CURLOPT_UNRESTRICTED_AUTH, 1L);
114 curl_easy_setopt(handle, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
115 curl_easy_setopt(handle, CURLOPT_EXPECT_100_TIMEOUT_MS, 0L);
116 return handle;
199 CURL *handle = m->easy_handle;
202 curl_easy_getinfo(handle, CURLINFO_PRIVATE, &mem);
203 curl_easy_getinfo(handle, CURLINFO_EFFECTIVE_URL, &url);
206 curl_easy_getinfo(handle, CURLINFO_RESPONSE_CODE, &res_status);
209 curl_easy_getinfo(handle, CURLINFO_CONTENT_TYPE, &ctype);
225 curl_multi_remove_handle(multi_handle, handle);
226 curl_easy_cleanup(handle);