Home
last modified time | relevance | path

Searched refs:easy (Results 1 - 25 of 78) sorted by relevance

1234

/third_party/curl/tests/libtest/
H A Dlib1940.c49 static void showem(CURL *easy, unsigned int type) in showem() argument
54 if(CURLHE_OK == curl_easy_header(easy, show[i], 0, type, HEADER_REQUEST, in showem()
66 if(CURLHE_OK != curl_easy_header(easy, show[i], index, type, in showem()
88 CURL *easy = NULL; in test() local
92 easy_init(easy); in test()
93 easy_setopt(easy, CURLOPT_URL, URL); in test()
94 easy_setopt(easy, CURLOPT_VERBOSE, 1L); in test()
95 easy_setopt(easy, CURLOPT_FOLLOWLOCATION, 1L); in test()
97 easy_setopt(easy, CURLOPT_WRITEFUNCTION, write_cb); in test()
101 easy_setopt(easy, CURLOPT_PROX in test()
[all...]
H A Dlib1502.c44 CURL *easy = NULL; in test() local
72 easy_init(easy); in test()
74 easy_setopt(easy, CURLOPT_URL, URL); in test()
75 easy_setopt(easy, CURLOPT_HEADER, 1L); in test()
76 easy_setopt(easy, CURLOPT_RESOLVE, dns_cache_list); in test()
78 dup = curl_easy_duphandle(easy); in test()
80 curl_easy_cleanup(easy); in test()
81 easy = dup; in test()
85 curl_easy_cleanup(easy); in test()
92 multi_add_handle(multi, easy); in test()
[all...]
H A Dlib1542.c41 CURL *easy = NULL; in test() local
46 res_easy_init(easy); in test()
48 easy_setopt(easy, CURLOPT_URL, URL); in test()
52 easy_setopt(easy, CURLOPT_DEBUGDATA, &libtest_debug_config); in test()
53 easy_setopt(easy, CURLOPT_DEBUGFUNCTION, libtest_debug_cb); in test()
54 easy_setopt(easy, CURLOPT_VERBOSE, 1L); in test()
56 res = curl_easy_perform(easy); in test()
60 res = curl_easy_perform(easy); in test()
68 res = curl_easy_perform(easy); in test()
72 easy_setopt(easy, CURLOPT_MAXLIFETIME_CON in test()
[all...]
H A Dlib1945.c33 static void showem(CURL *easy, unsigned int type) in showem() argument
38 while((header = curl_easy_nextheader(easy, type, 0, prev))) { in showem()
54 CURL *easy; in test() local
59 easy_init(easy); in test()
60 curl_easy_setopt(easy, CURLOPT_URL, URL); in test()
61 curl_easy_setopt(easy, CURLOPT_VERBOSE, 1L); in test()
62 curl_easy_setopt(easy, CURLOPT_FOLLOWLOCATION, 1L); in test()
64 curl_easy_setopt(easy, CURLOPT_WRITEFUNCTION, write_cb); in test()
68 curl_easy_setopt(easy, CURLOPT_PROXY, libtest_arg2); in test()
69 curl_easy_setopt(easy, CURLOPT_HTTPPROXYTUNNE in test()
[all...]
H A Dlibntlmconnect.c37 static CURL *easy[MAX_EASY_HANDLES]; variable
43 ssize_t idx = ((CURL **) data) - easy; in callback()
52 /* Get socket being used for this easy handle, otherwise CURL_SOCKET_BAD */ in callback()
54 code = curl_easy_getinfo(easy[idx], CURLINFO_LASTSOCKET, &longdata); in callback()
69 /* Track relationship between this easy handle and the socket. */ in callback()
71 /* An easy handle without previous socket, record the socket. */ in callback()
75 /* An easy handle with a socket different to previously in callback()
110 easy[i] = NULL; in test()
133 easy_init(easy[num_handles]); in test()
137 easy_setopt(easy[num_handle in test()
[all...]
H A Dlib670.c41 CURL *easy; member
93 curl_easy_pause(pooh->easy, CURLPAUSE_CONT); in xferinfo()
133 pooh.easy = curl_easy_init(); in test()
136 test_setopt(pooh.easy, CURLOPT_URL, URL); in test()
139 test_setopt(pooh.easy, CURLOPT_VERBOSE, 1L); in test()
142 test_setopt(pooh.easy, CURLOPT_HEADER, 1L); in test()
146 mime = curl_mime_init(pooh.easy); in test()
159 /* Bind mime data to its easy handle. */ in test()
161 test_setopt(pooh.easy, CURLOPT_MIMEPOST, mime); in test()
175 test_setopt(pooh.easy, CURLOPT_READFUNCTIO in test()
[all...]
H A Dlib591.c40 CURL *easy = NULL; in test() local
64 easy_init(easy); in test()
67 easy_setopt(easy, CURLOPT_VERBOSE, 1L); in test()
70 easy_setopt(easy, CURLOPT_URL, URL); in test()
73 easy_setopt(easy, CURLOPT_UPLOAD, 1L); in test()
76 easy_setopt(easy, CURLOPT_READDATA, upload); in test()
79 easy_setopt(easy, CURLOPT_FTPPORT, "-"); in test()
82 easy_setopt(easy, CURLOPT_ACCEPTTIMEOUT_MS, in test()
87 multi_add_handle(multi, easy); in test()
145 curl_easy_cleanup(easy); in test()
[all...]
H A Dlib668.c53 CURL *easy = NULL; in test() local
69 easy = curl_easy_init(); in test()
72 test_setopt(easy, CURLOPT_URL, URL); in test()
75 test_setopt(easy, CURLOPT_VERBOSE, 1L); in test()
78 test_setopt(easy, CURLOPT_HEADER, 1L); in test()
86 mime = curl_mime_init(easy); in test()
103 /* Bind mime data to its easy handle. */ in test()
104 test_setopt(easy, CURLOPT_MIMEPOST, mime); in test()
107 result = curl_easy_perform(easy); in test()
114 curl_easy_cleanup(easy); in test()
[all...]
H A Dlib667.c59 CURL *easy = NULL; in test() local
76 easy = curl_easy_init(); in test()
79 test_setopt(easy, CURLOPT_URL, URL); in test()
82 test_setopt(easy, CURLOPT_VERBOSE, 1L); in test()
85 test_setopt(easy, CURLOPT_HEADER, 1L); in test()
92 mime = curl_mime_init(easy); in test()
99 /* Bind mime data to its easy handle. */ in test()
100 test_setopt(easy, CURLOPT_MIMEPOST, mime); in test()
103 result = curl_easy_perform(easy); in test()
110 curl_easy_cleanup(easy); in test()
[all...]
H A Dlib1939.c32 CURL *easy; in test() local
39 easy = curl_easy_init(); in test()
40 if(easy) { in test()
45 c = curl_easy_setopt(easy, CURLOPT_URL, URL); in test()
48 c = curl_easy_setopt(easy, CURLOPT_PROXY, libtest_arg2); in test()
54 m = curl_multi_add_handle(multi, easy); in test()
64 /* Close the easy handle *before* the multi handle. Doing it the other in test()
66 curl_easy_cleanup(easy); in test()
H A Dlib543.c37 CURL *easy; in test() local
42 easy = curl_easy_init(); in test()
43 if(!easy) { in test()
49 char *s = curl_easy_escape(easy, (const char *)a, asize); in test()
56 s = curl_easy_escape(easy, "", 0); in test()
61 s = curl_easy_escape(easy, " 123", 3); in test()
67 curl_easy_cleanup(easy); in test()
H A Dlib654.c67 CURL *easy = NULL; in test() local
78 * easy handle. in test()
86 easy = curl_easy_init(); in test()
89 test_setopt(easy, CURLOPT_URL, URL); in test()
92 test_setopt(easy, CURLOPT_VERBOSE, 1L); in test()
95 test_setopt(easy, CURLOPT_HEADER, 1L); in test()
103 mime = curl_mime_init(easy); in test()
117 /* Bind mime data to its easy handle. */ in test()
118 test_setopt(easy, CURLOPT_MIMEPOST, mime); in test()
121 easy2 = curl_easy_duphandle(easy); in test()
[all...]
H A Dlib597.c45 CURL *easy = NULL; in test() local
56 easy_init(easy); in test()
61 easy_setopt(easy, CURLOPT_VERBOSE, 1L); in test()
64 easy_setopt(easy, CURLOPT_URL, URL); in test()
66 easy_setopt(easy, CURLOPT_CONNECT_ONLY, 1L); in test()
68 multi_add_handle(multi, easy); in test()
122 multi_remove_handle(multi, easy); in test()
129 curl_easy_cleanup(easy); in test()
/third_party/curl/tests/unit/
H A Dunit1606.c29 static CURL *easy; variable
36 easy = curl_easy_init(); in unit_setup()
37 if(!easy) { in unit_setup()
46 curl_easy_cleanup(easy); in unit_stop()
60 curl_easy_setopt(easy, CURLOPT_LOW_SPEED_LIMIT, speed_limit); in runawhile()
61 curl_easy_setopt(easy, CURLOPT_LOW_SPEED_TIME, time_limit); in runawhile()
62 Curl_speedinit(easy); in runawhile()
66 easy->progress.current_speed = speed; in runawhile()
67 result = Curl_speedcheck(easy, now); in runawhile()
H A Dunit1609.c106 struct Curl_easy *easy = NULL; variable
120 easy = curl_easy_init();
121 if(!easy) {
125 /* create a multi handle and add the easy handle to it so that the
130 curl_multi_add_handle(multi, easy);
136 curl_easy_setopt(easy, CURLOPT_RESOLVE, list);
138 if(Curl_loadhostpairs(easy))
145 dns = Curl_hash_pick(easy->dns.hostcache, entry_id, strlen(entry_id) + 1);
201 curl_easy_cleanup(easy); variable
202 easy
216 curl_easy_cleanup(easy); global() variable
[all...]
H A Dunit1605.c28 static CURL *easy; variable
35 easy = curl_easy_init(); in unit_setup()
36 if(!easy) { in unit_setup()
45 curl_easy_cleanup(easy); in unit_stop()
53 esc = curl_easy_escape(easy, "", -1);
56 esc = curl_easy_unescape(easy, "%41%41%41%41", -1, &len);
H A Dunit1607.c114 struct Curl_easy *easy = NULL; variable
124 easy = curl_easy_init();
125 if(!easy)
128 /* create a multi handle and add the easy handle to it so that the
131 curl_multi_add_handle(multi, easy);
136 curl_easy_setopt(easy, CURLOPT_RESOLVE, list);
138 Curl_loadhostpairs(easy); variable
143 dns = Curl_hash_pick(easy->dns.hostcache, entry_id, strlen(entry_id) + 1);
218 curl_easy_cleanup(easy); variable
219 easy
231 curl_easy_cleanup(easy); global() variable
[all...]
/third_party/curl/tests/http/clients/
H A Dtls-session-reuse.c147 CURL *easy; in add_transfer() local
150 easy = curl_easy_init(); in add_transfer()
151 if(!easy) { in add_transfer()
155 curl_easy_setopt(easy, CURLOPT_VERBOSE, 1L); in add_transfer()
156 curl_easy_setopt(easy, CURLOPT_DEBUGFUNCTION, debug_cb); in add_transfer()
157 curl_easy_setopt(easy, CURLOPT_URL, url); in add_transfer()
158 curl_easy_setopt(easy, CURLOPT_SHARE, share); in add_transfer()
159 curl_easy_setopt(easy, CURLOPT_NOSIGNAL, 1L); in add_transfer()
160 curl_easy_setopt(easy, CURLOPT_AUTOREFERER, 1L); in add_transfer()
161 curl_easy_setopt(easy, CURLOPT_FAILONERRO in add_transfer()
[all...]
H A Dh2-upgrade-extreme.c147 CURL *easy; in main() local
169 easy = curl_easy_init(); in main()
170 if(!easy) { in main()
174 curl_easy_setopt(easy, CURLOPT_VERBOSE, 1L); in main()
175 curl_easy_setopt(easy, CURLOPT_DEBUGFUNCTION, debug_cb); in main()
176 curl_easy_setopt(easy, CURLOPT_URL, url); in main()
177 curl_easy_setopt(easy, CURLOPT_NOSIGNAL, 1L); in main()
178 curl_easy_setopt(easy, CURLOPT_AUTOREFERER, 1L); in main()
179 curl_easy_setopt(easy, CURLOPT_FAILONERROR, 1L); in main()
180 curl_easy_setopt(easy, CURLOPT_HTTP_VERSIO in main()
[all...]
H A Dh2-download.c87 CURL *easy; member
101 static struct transfer *get_transfer_for_easy(CURL *easy) in get_transfer_for_easy() argument
105 if(easy == transfers[i].easy) in get_transfer_for_easy()
243 t->easy = curl_easy_init(); in main()
244 if(!t->easy || setup(t->easy, url, t)) { in main()
248 curl_multi_add_handle(multi_handle, t->easy); in main()
287 if(!t->done && t->paused && t->easy) { in main()
288 curl_multi_remove_handle(multi_handle, t->easy); in main()
[all...]
/third_party/curl/docs/examples/
H A Dghiper.c41 of URL's and creates some new easy handles to fetch each URL via the
79 /* Information associated with a specific easy handle */
81 CURL *easy; member
90 CURL *easy; member
118 /* Check for completed transfers, and remove their easy handles */
125 CURL *easy; in check_multi_info() local
131 easy = msg->easy_handle; in check_multi_info()
133 curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn); in check_multi_info()
134 curl_easy_getinfo(easy, CURLINFO_EFFECTIVE_URL, &eff_url); in check_multi_info()
136 curl_multi_remove_handle(g->multi, easy); in check_multi_info()
236 addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g) addsock() argument
[all...]
H A Dephiperfifo.c41 of URL's and creates some new easy handles to fetch each URL via the
93 /* Information associated with a specific easy handle */
96 CURL *easy; member
107 CURL *easy; member
174 /* Check for completed transfers, and remove their easy handles */
181 CURL *easy; in check_multi_info() local
187 easy = msg->easy_handle; in check_multi_info()
189 curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn); in check_multi_info()
190 curl_easy_getinfo(easy, CURLINFO_EFFECTIVE_URL, &eff_url); in check_multi_info()
192 curl_multi_remove_handle(g->multi, easy); in check_multi_info()
295 addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g) addsock() argument
[all...]
H A Devhiperfifo.c44 of URL's and creates some new easy handles to fetch each URL via the
95 /* Information associated with a specific easy handle */
98 CURL *easy; member
109 CURL *easy; member
173 /* Check for completed transfers, and remove their easy handles */
180 CURL *easy; in check_multi_info() local
186 easy = msg->easy_handle; in check_multi_info()
188 curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn); in check_multi_info()
189 curl_easy_getinfo(easy, CURLINFO_EFFECTIVE_URL, &eff_url); in check_multi_info()
191 curl_multi_remove_handle(g->multi, easy); in check_multi_info()
269 addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g) addsock() argument
[all...]
H A Dhiperfifo.c41 of URL's and creates some new easy handles to fetch each URL via the
93 /* Information associated with a specific easy handle */
96 CURL *easy; member
107 CURL *easy; member
165 /* Check for completed transfers, and remove their easy handles */
172 CURL *easy; in check_multi_info() local
178 easy = msg->easy_handle; in check_multi_info()
180 curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn); in check_multi_info()
181 curl_easy_getinfo(easy, CURLINFO_EFFECTIVE_URL, &eff_url); in check_multi_info()
183 curl_multi_remove_handle(g->multi, easy); in check_multi_info()
269 addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g) addsock() argument
[all...]
/third_party/curl/lib/
H A Dpsl.c56 const psl_ctx_t *Curl_psl_use(struct Curl_easy *easy) in Curl_psl_use() argument
58 struct PslCache *pslcache = easy->psl; in Curl_psl_use()
65 Curl_share_lock(easy, CURL_LOCK_DATA_PSL, CURL_LOCK_ACCESS_SHARED); in Curl_psl_use()
69 Curl_share_unlock(easy, CURL_LOCK_DATA_PSL); in Curl_psl_use()
72 Curl_share_lock(easy, CURL_LOCK_DATA_PSL, CURL_LOCK_ACCESS_SINGLE); in Curl_psl_use()
99 Curl_share_unlock(easy, CURL_LOCK_DATA_PSL); /* Release exclusive lock. */ in Curl_psl_use()
100 Curl_share_lock(easy, CURL_LOCK_DATA_PSL, CURL_LOCK_ACCESS_SHARED); in Curl_psl_use()
104 Curl_share_unlock(easy, CURL_LOCK_DATA_PSL); in Curl_psl_use()
108 void Curl_psl_release(struct Curl_easy *easy) in Curl_psl_release() argument
110 Curl_share_unlock(easy, CURL_LOCK_DATA_PS in Curl_psl_release()
[all...]

Completed in 9 milliseconds

1234