Home
last modified time | relevance | path

Searched refs:easy (Results 1 – 25 of 940) sorted by relevance

12345678910>>...38

/third_party/curl/tests/libtest/
Dlib1502.c42 CURL *easy = NULL; in test() local
70 easy_init(easy); in test()
72 easy_setopt(easy, CURLOPT_URL, URL); in test()
73 easy_setopt(easy, CURLOPT_HEADER, 1L); in test()
74 easy_setopt(easy, CURLOPT_RESOLVE, dns_cache_list); in test()
76 dup = curl_easy_duphandle(easy); in test()
78 curl_easy_cleanup(easy); in test()
79 easy = dup; in test()
83 curl_easy_cleanup(easy); in test()
90 multi_add_handle(multi, easy); in test()
[all …]
Dlibntlmconnect.c35 static CURL *easy[MAX_EASY_HANDLES]; variable
41 ssize_t idx = ((CURL **) data) - easy; in callback()
51 code = curl_easy_getinfo(easy[idx], CURLINFO_LASTSOCKET, &longdata); in callback()
106 easy[i] = NULL; in test()
135 easy_init(easy[num_handles]); in test()
139 easy_setopt(easy[num_handles], CURLOPT_HTTPAUTH, CURLAUTH_NTLM); in test()
143 easy_setopt(easy[num_handles], CURLOPT_HTTPAUTH, CURLAUTH_BASIC); in test()
145 easy_setopt(easy[num_handles], CURLOPT_FRESH_CONNECT, 1L); in test()
146 easy_setopt(easy[num_handles], CURLOPT_URL, full_url); in test()
147 easy_setopt(easy[num_handles], CURLOPT_VERBOSE, 1L); in test()
[all …]
Dlib670.c35 CURL *easy; member
87 curl_easy_pause(pooh->easy, CURLPAUSE_CONT); in xferinfo()
127 pooh.easy = curl_easy_init(); in test()
130 test_setopt(pooh.easy, CURLOPT_URL, URL); in test()
133 test_setopt(pooh.easy, CURLOPT_VERBOSE, 1L); in test()
136 test_setopt(pooh.easy, CURLOPT_HEADER, 1L); in test()
140 mime = curl_mime_init(pooh.easy); in test()
156 test_setopt(pooh.easy, CURLOPT_MIMEPOST, mime); in test()
170 test_setopt(pooh.easy, CURLOPT_READFUNCTION, read_callback); in test()
173 test_setopt(pooh.easy, CURLOPT_HTTPPOST, formpost); in test()
[all …]
Dlib591.c38 CURL *easy = NULL; in test() local
62 easy_init(easy); in test()
65 easy_setopt(easy, CURLOPT_VERBOSE, 1L); in test()
68 easy_setopt(easy, CURLOPT_URL, URL); in test()
71 easy_setopt(easy, CURLOPT_UPLOAD, 1L); in test()
74 easy_setopt(easy, CURLOPT_READDATA, upload); in test()
77 easy_setopt(easy, CURLOPT_FTPPORT, "-"); in test()
80 easy_setopt(easy, CURLOPT_ACCEPTTIMEOUT_MS, in test()
85 multi_add_handle(multi, easy); in test()
138 curl_easy_cleanup(easy); in test()
Dlib667.c62 CURL *easy = NULL; in test() local
79 easy = curl_easy_init(); in test()
82 test_setopt(easy, CURLOPT_URL, URL); in test()
85 test_setopt(easy, CURLOPT_VERBOSE, 1L); in test()
88 test_setopt(easy, CURLOPT_HEADER, 1L); in test()
95 mime = curl_mime_init(easy); in test()
103 test_setopt(easy, CURLOPT_MIMEPOST, mime); in test()
106 result = curl_easy_perform(easy); in test()
113 curl_easy_cleanup(easy); in test()
Dlib543.c35 CURL *easy; in test() local
40 easy = curl_easy_init(); in test()
41 if(!easy) { in test()
47 char *s = curl_easy_escape(easy, (const char *)a, asize); in test()
54 s = curl_easy_escape(easy, "", 0); in test()
59 s = curl_easy_escape(easy, " 123", 3); in test()
65 curl_easy_cleanup(easy); in test()
Dlib668.c57 CURL *easy = NULL; in test() local
73 easy = curl_easy_init(); in test()
76 test_setopt(easy, CURLOPT_URL, URL); in test()
79 test_setopt(easy, CURLOPT_VERBOSE, 1L); in test()
82 test_setopt(easy, CURLOPT_HEADER, 1L); in test()
90 mime = curl_mime_init(easy); in test()
108 test_setopt(easy, CURLOPT_MIMEPOST, mime); in test()
111 result = curl_easy_perform(easy); in test()
118 curl_easy_cleanup(easy); in test()
Dlib654.c70 CURL *easy = NULL; in test() local
89 easy = curl_easy_init(); in test()
92 test_setopt(easy, CURLOPT_URL, URL); in test()
95 test_setopt(easy, CURLOPT_VERBOSE, 1L); in test()
98 test_setopt(easy, CURLOPT_HEADER, 1L); in test()
106 mime = curl_mime_init(easy); in test()
121 test_setopt(easy, CURLOPT_MIMEPOST, mime); in test()
124 easy2 = curl_easy_duphandle(easy); in test()
137 result = curl_easy_perform(easy); in test()
167 curl_easy_cleanup(easy); in test()
Dlib597.c43 CURL *easy = NULL; in test() local
54 easy_init(easy); in test()
59 easy_setopt(easy, CURLOPT_VERBOSE, 1L); in test()
62 easy_setopt(easy, CURLOPT_URL, URL); in test()
64 easy_setopt(easy, CURLOPT_CONNECT_ONLY, 1L); in test()
66 multi_add_handle(multi, easy); in test()
115 multi_remove_handle(multi, easy); in test()
122 curl_easy_cleanup(easy); in test()
Dlib1531.c35 CURL *easy; in test() local
47 easy = curl_easy_init(); in test()
53 curl_multi_add_handle(multi_handle, easy); in test()
56 curl_easy_setopt(easy, CURLOPT_URL, URL); in test()
57 curl_easy_setopt(easy, CURLOPT_POSTFIELDSIZE_LARGE, in test()
59 curl_easy_setopt(easy, CURLOPT_POSTFIELDS, testData); in test()
153 curl_easy_cleanup(easy); in test()
Dlib1911.c37 CURL *easy; in test() local
42 easy = curl_easy_init(); in test()
43 if(!easy) { in test()
73 result = curl_easy_setopt(easy, o->id, buffer); in test()
88 curl_easy_cleanup(easy); in test()
Dlib1565.c46 CURL *easy = NULL; in run_thread() local
55 easy_init(easy); in run_thread()
57 easy_setopt(easy, CURLOPT_URL, url); in run_thread()
58 easy_setopt(easy, CURLOPT_VERBOSE, 0L); in run_thread()
67 pending_handles[pending_num] = easy; in run_thread()
69 easy = NULL; in run_thread()
78 curl_easy_cleanup(easy); in run_thread()
/third_party/curl/docs/examples/
Dghiper.c79 CURL *easy; member
88 CURL *easy; member
123 CURL *easy; in check_multi_info() local
129 easy = msg->easy_handle; in check_multi_info()
131 curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn); in check_multi_info()
132 curl_easy_getinfo(easy, CURLINFO_EFFECTIVE_URL, &eff_url); in check_multi_info()
134 curl_multi_remove_handle(g->multi, easy); in check_multi_info()
136 curl_easy_cleanup(easy); in check_multi_info()
226 f->easy = e; in setsock()
234 static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g) in addsock() argument
[all …]
Dhiperfifo.c94 CURL *easy; member
105 CURL *easy; member
170 CURL *easy; in check_multi_info() local
176 easy = msg->easy_handle; in check_multi_info()
178 curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn); in check_multi_info()
179 curl_easy_getinfo(easy, CURLINFO_EFFECTIVE_URL, &eff_url); in check_multi_info()
181 curl_multi_remove_handle(g->multi, easy); in check_multi_info()
183 curl_easy_cleanup(easy); in check_multi_info()
256 f->easy = e; in setsock()
267 static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g) in addsock() argument
[all …]
Devhiperfifo.c96 CURL *easy; member
107 CURL *easy; member
178 CURL *easy; in check_multi_info() local
184 easy = msg->easy_handle; in check_multi_info()
186 curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn); in check_multi_info()
187 curl_easy_getinfo(easy, CURLINFO_EFFECTIVE_URL, &eff_url); in check_multi_info()
189 curl_multi_remove_handle(g->multi, easy); in check_multi_info()
191 curl_easy_cleanup(easy); in check_multi_info()
255 f->easy = e; in setsock()
267 static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g) in addsock() argument
[all …]
Dephiperfifo.c94 CURL *easy; member
105 CURL *easy; member
179 CURL *easy; in check_multi_info() local
185 easy = msg->easy_handle; in check_multi_info()
187 curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn); in check_multi_info()
188 curl_easy_getinfo(easy, CURLINFO_EFFECTIVE_URL, &eff_url); in check_multi_info()
190 curl_multi_remove_handle(g->multi, easy); in check_multi_info()
192 curl_easy_cleanup(easy); in check_multi_info()
281 f->easy = e; in setsock()
293 static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g) in addsock() argument
[all …]
/third_party/curl/tests/unit/
Dunit1606.c27 static CURL *easy; variable
34 easy = curl_easy_init(); in unit_setup()
35 if(!easy) { in unit_setup()
44 curl_easy_cleanup(easy); in unit_stop()
58 curl_easy_setopt(easy, CURLOPT_LOW_SPEED_LIMIT, speed_limit); in runawhile()
59 curl_easy_setopt(easy, CURLOPT_LOW_SPEED_TIME, time_limit); in runawhile()
60 Curl_speedinit(easy); in runawhile()
64 easy->progress.current_speed = speed; in runawhile()
65 result = Curl_speedcheck(easy, now); in runawhile()
Dunit1600.c27 static CURL *easy; variable
34 easy = curl_easy_init(); in unit_setup()
35 if(!easy) { in unit_setup()
44 curl_easy_cleanup(easy); in unit_stop()
54 Curl_ntlm_core_mk_nt_hash(easy, "1", output);
60 Curl_ntlm_core_mk_nt_hash(easy, "hello-you-fool", output);
67 …Curl_ntlm_core_mk_nt_hash(easy, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA…
Dunit1609.c104 struct Curl_easy *easy = NULL; variable
118 easy = curl_easy_init();
119 if(!easy) {
128 curl_multi_add_handle(multi, easy);
134 curl_easy_setopt(easy, CURLOPT_RESOLVE, list);
136 if(Curl_loadhostpairs(easy))
143 dns = Curl_hash_pick(easy->dns.hostcache, entry_id, strlen(entry_id) + 1);
199 curl_easy_cleanup(easy);
200 easy = NULL;
214 curl_easy_cleanup(easy);
Dunit1605.c26 static CURL *easy; variable
33 easy = curl_easy_init(); in unit_setup()
34 if(!easy) { in unit_setup()
43 curl_easy_cleanup(easy); in unit_stop()
51 esc = curl_easy_escape(easy, "", -1);
54 esc = curl_easy_unescape(easy, "%41%41%41%41", -1, &len);
Dunit1607.c112 struct Curl_easy *easy = NULL; variable
122 easy = curl_easy_init();
123 if(!easy)
129 curl_multi_add_handle(multi, easy);
134 curl_easy_setopt(easy, CURLOPT_RESOLVE, list);
136 Curl_loadhostpairs(easy);
141 dns = Curl_hash_pick(easy->dns.hostcache, entry_id, strlen(entry_id) + 1);
216 curl_easy_cleanup(easy);
217 easy = NULL;
229 curl_easy_cleanup(easy);
Dunit1608.c53 struct Curl_easy *easy = curl_easy_init(); variable
54 abort_unless(easy, "out of memory");
56 code = curl_easy_setopt(easy, CURLOPT_DNS_SHUFFLE_ADDRESSES, 1L);
61 if(CURLE_OK != Curl_shuffle_addr(easy, &addrhead))
67 curl_easy_cleanup(easy);
Dunit1660.c125 CURL *easy;
130 easy = curl_easy_init();
131 if(!easy) {
137 Curl_hsts_loadfile(easy, h, "log/input1660");
170 (void)Curl_hsts_save(easy, h, "log/hsts1660");
172 curl_easy_cleanup(easy);
/third_party/curl/lib/
Dpsl.c54 const psl_ctx_t *Curl_psl_use(struct Curl_easy *easy) in Curl_psl_use() argument
56 struct PslCache *pslcache = easy->psl; in Curl_psl_use()
63 Curl_share_lock(easy, CURL_LOCK_DATA_PSL, CURL_LOCK_ACCESS_SHARED); in Curl_psl_use()
67 Curl_share_unlock(easy, CURL_LOCK_DATA_PSL); in Curl_psl_use()
70 Curl_share_lock(easy, CURL_LOCK_DATA_PSL, CURL_LOCK_ACCESS_SINGLE); in Curl_psl_use()
97 Curl_share_unlock(easy, CURL_LOCK_DATA_PSL); /* Release exclusive lock. */ in Curl_psl_use()
98 Curl_share_lock(easy, CURL_LOCK_DATA_PSL, CURL_LOCK_ACCESS_SHARED); in Curl_psl_use()
102 Curl_share_unlock(easy, CURL_LOCK_DATA_PSL); in Curl_psl_use()
106 void Curl_psl_release(struct Curl_easy *easy) in Curl_psl_release() argument
108 Curl_share_unlock(easy, CURL_LOCK_DATA_PSL); in Curl_psl_release()
Dpsl.h36 const psl_ctx_t *Curl_psl_use(struct Curl_easy *easy);
37 void Curl_psl_release(struct Curl_easy *easy);
42 #define Curl_psl_use(easy) NULL argument
43 #define Curl_psl_release(easy) argument

12345678910>>...38