Lines Matching refs:hnd
75 CURL *hnd;
82 hnd = curl_easy_init();
83 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L);
84 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1401");
85 curl_easy_setopt(hnd, CURLOPT_USERPWD, "fake:user");
86 curl_easy_setopt(hnd, CURLOPT_HTTPAUTH, (long)CURLAUTH_BASIC);
87 curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, slist1);
88 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "MyUA");
89 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
90 curl_easy_setopt(hnd, CURLOPT_HTTP09_ALLOWED, 1L);
91 curl_easy_setopt(hnd, CURLOPT_COOKIE, "chocolate=chip");
92 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
93 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
94 curl_easy_setopt(hnd, CURLOPT_PROTOCOLS, (long)CURLPROTO_FILE |
118 ret = curl_easy_perform(hnd);
120 curl_easy_cleanup(hnd);
121 hnd = NULL;