Lines Matching refs:handle

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