Lines Matching defs:easy
37 static CURL *easy[MAX_EASY_HANDLES];
43 ssize_t idx = ((CURL **) data) - easy;
52 /* Get socket being used for this easy handle, otherwise CURL_SOCKET_BAD */
54 code = curl_easy_getinfo(easy[idx], CURLINFO_LASTSOCKET, &longdata);
69 /* Track relationship between this easy handle and the socket. */
71 /* An easy handle without previous socket, record the socket. */
75 /* An easy handle with a socket different to previously
110 easy[i] = NULL;
133 easy_init(easy[num_handles]);
137 easy_setopt(easy[num_handles], CURLOPT_HTTPAUTH, CURLAUTH_NTLM);
141 easy_setopt(easy[num_handles], CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
143 easy_setopt(easy[num_handles], CURLOPT_FRESH_CONNECT, 1L);
144 easy_setopt(easy[num_handles], CURLOPT_URL, full_url);
145 easy_setopt(easy[num_handles], CURLOPT_VERBOSE, 1L);
146 easy_setopt(easy[num_handles], CURLOPT_HTTPGET, 1L);
147 easy_setopt(easy[num_handles], CURLOPT_USERPWD, "testuser:testpass");
148 easy_setopt(easy[num_handles], CURLOPT_WRITEFUNCTION, callback);
149 easy_setopt(easy[num_handles], CURLOPT_WRITEDATA, easy + num_handles);
150 easy_setopt(easy[num_handles], CURLOPT_HEADER, 1L);
152 multi_add_handle(multi, easy[num_handles]);
227 curl_multi_remove_handle(multi, easy[i]);
228 curl_easy_cleanup(easy[i]);