Home
last modified time | relevance | path

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

1234567

/curl/tests/libtest/
H A Dlib1940.c49 static void showem(CURL *easy, unsigned int type) in showem() argument
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()
104 res = curl_easy_perform(easy); in test()
108 showem(easy, CURLH_HEADER); in test()
111 showem(easy, CURLH_CONNECT); in test()
113 showem(easy, CURLH_1XX); in test()
114 showem(easy, CURLH_TRAILER); 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()
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_CONN, 1L); in test()
74 res = curl_easy_perform(easy); in test()
[all …]
H A Dlib1945.c33 static void showem(CURL *easy, unsigned int type) in showem() argument
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_HTTPPROXYTUNNEL, 1L); in test()
71 res = curl_easy_perform(easy); in test()
[all …]
H A Dlib1502.c44 CURL *easy = NULL; in test() local
72 easy_init(easy); 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()
129 curl_easy_cleanup(easy); in test()
137 curl_easy_cleanup(easy); in test()
143 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()
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 Dlibntlmconnect.c37 static CURL *easy[MAX_EASY_HANDLES]; variable
43 ssize_t idx = ((CURL **) data) - easy; in callback()
110 easy[i] = NULL; in test()
133 easy_init(easy[num_handles]); in test()
145 easy_setopt(easy[num_handles], CURLOPT_VERBOSE, 1L); in test()
146 easy_setopt(easy[num_handles], CURLOPT_HTTPGET, 1L); in test()
149 easy_setopt(easy[num_handles], CURLOPT_WRITEDATA, easy + num_handles); in test()
150 easy_setopt(easy[num_handles], CURLOPT_HEADER, 1L); in test()
152 multi_add_handle(multi, easy[num_handles]); in test()
227 curl_multi_remove_handle(multi, easy[i]); in test()
[all …]
H A Dlib667.c59 CURL *easy = NULL; in test() local
75 easy = curl_easy_init(); in test()
78 test_setopt(easy, CURLOPT_URL, URL); in test()
81 test_setopt(easy, CURLOPT_VERBOSE, 1L); in test()
84 test_setopt(easy, CURLOPT_HEADER, 1L); in test()
91 mime = curl_mime_init(easy); in test()
99 test_setopt(easy, CURLOPT_MIMEPOST, mime); in test()
102 res = curl_easy_perform(easy); in test()
108 curl_easy_cleanup(easy); in test()
H A Dlib670.c41 CURL *easy; member
93 curl_easy_pause(pooh->easy, CURLPAUSE_CONT); in xferinfo()
132 pooh.easy = curl_easy_init(); in test()
135 test_setopt(pooh.easy, CURLOPT_URL, URL); in test()
138 test_setopt(pooh.easy, CURLOPT_VERBOSE, 1L); in test()
141 test_setopt(pooh.easy, CURLOPT_HEADER, 1L); in test()
145 mime = curl_mime_init(pooh.easy); in test()
183 mres = curl_multi_add_handle(multi, pooh.easy); in test()
239 curl_multi_remove_handle(multi, pooh.easy); in test()
247 res = curl_easy_perform(pooh.easy); 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()
H A Dlib668.c53 CURL *easy = NULL; in test() local
68 easy = curl_easy_init(); in test()
71 test_setopt(easy, CURLOPT_URL, URL); in test()
74 test_setopt(easy, CURLOPT_VERBOSE, 1L); in test()
77 test_setopt(easy, CURLOPT_HEADER, 1L); in test()
85 mime = curl_mime_init(easy); in test()
103 test_setopt(easy, CURLOPT_MIMEPOST, mime); in test()
106 res = curl_easy_perform(easy); in test()
112 curl_easy_cleanup(easy); in test()
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()
H A Dlib2405.c81 easy_setopt(easy, CURLOPT_URL, URL); in set_easy()
84 easy_setopt(easy, CURLOPT_VERBOSE, 1L); in set_easy()
100 easy_setopt(easy, CURLOPT_PIPEWAIT, 1L); in set_easy()
105 easy_setopt(easy, CURLOPT_SSL_VERIFYPEER, 0L); in set_easy()
106 easy_setopt(easy, CURLOPT_SSL_VERIFYHOST, 0L); in set_easy()
109 easy_setopt(easy, CURLOPT_HEADER, 1L); in set_easy()
232 CURL *easy = NULL; in empty_multi_test() local
257 easy_init(easy); in empty_multi_test()
262 multi_add_handle(multi, easy); in empty_multi_test()
278 curl_multi_remove_handle(multi, easy); in empty_multi_test()
[all …]
H A Dlib1541.c31 CURL *easy; member
56 static void check_time(CURL *easy, int key, const char *name, in check_time() argument
60 CURLcode res = curl_easy_getinfo(easy, (CURLINFO)key, &tval); in check_time()
68 static void check_time0(CURL *easy, int key, const char *name, in check_time0() argument
72 CURLcode res = curl_easy_getinfo(easy, (CURLINFO)key, &tval); in check_time0()
89 check_time(st->easy, KN(CURLINFO_CONNECT_TIME_T), "1st header"); in header_callback()
90 check_time(st->easy, KN(CURLINFO_PRETRANSFER_TIME_T), "1st header"); in header_callback()
93 check_time(st->easy, KN(CURLINFO_TOTAL_TIME_T), "1st header"); in header_callback()
95 check_time0(st->easy, KN(CURLINFO_APPCONNECT_TIME_T), "1st header"); in header_callback()
97 check_time0(st->easy, KN(CURLINFO_SPEED_DOWNLOAD_T), "1st header"); in header_callback()
[all …]
H A Dlib654.c67 CURL *easy = NULL; in test() local
85 easy = curl_easy_init(); in test()
88 test_setopt(easy, CURLOPT_URL, URL); in test()
91 test_setopt(easy, CURLOPT_VERBOSE, 1L); in test()
94 test_setopt(easy, CURLOPT_HEADER, 1L); in test()
102 mime = curl_mime_init(easy); in test()
117 test_setopt(easy, CURLOPT_MIMEPOST, mime); in test()
120 easy2 = curl_easy_duphandle(easy); in test()
133 res = curl_easy_perform(easy); in test()
161 curl_easy_cleanup(easy); in test()
/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 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 Dunit1609.c106 struct Curl_easy *easy = NULL; variable
120 easy = curl_easy_init();
121 if(!easy) {
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);
202 easy = NULL;
216 curl_easy_cleanup(easy);
/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_PSL); in Curl_psl_release()
H A Dpsl.h38 const psl_ctx_t *Curl_psl_use(struct Curl_easy *easy);
39 void Curl_psl_release(struct Curl_easy *easy);
44 #define Curl_psl_use(easy) NULL argument
45 #define Curl_psl_release(easy) argument
/curl/docs/examples/
H A Dghiper.c81 CURL *easy; member
90 CURL *easy; member
125 CURL *easy; in check_multi_info() local
131 easy = msg->easy_handle; in check_multi_info()
136 curl_multi_remove_handle(g->multi, easy); in check_multi_info()
138 curl_easy_cleanup(easy); in check_multi_info()
228 f->easy = e; in setsock()
242 setsock(fdp, s, easy, action, g); in addsock()
301 conn->easy = curl_easy_init(); in new_conn()
302 if(!conn->easy) { in new_conn()
[all …]
H A Dhiperfifo.c96 CURL *easy; member
107 CURL *easy; member
172 CURL *easy; in check_multi_info() local
178 easy = msg->easy_handle; in check_multi_info()
183 curl_multi_remove_handle(g->multi, easy); in check_multi_info()
185 curl_easy_cleanup(easy); in check_multi_info()
258 f->easy = e; in setsock()
274 setsock(fdp, s, easy, action, g); in addsock()
339 conn->easy = curl_easy_init(); in new_conn()
340 if(!conn->easy) { in new_conn()
[all …]
H A Devhiperfifo.c98 CURL *easy; member
109 CURL *easy; member
180 CURL *easy; in check_multi_info() local
186 easy = msg->easy_handle; in check_multi_info()
191 curl_multi_remove_handle(g->multi, easy); in check_multi_info()
193 curl_easy_cleanup(easy); in check_multi_info()
257 f->easy = e; in setsock()
274 setsock(fdp, s, easy, action, g); in addsock()
343 conn->easy = curl_easy_init(); in new_conn()
344 if(!conn->easy) { in new_conn()
[all …]
/curl/tests/http/clients/
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()
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()
183 curl_easy_setopt(easy, CURLOPT_HTTPGET, 1L); in main()
186 curl_easy_setopt(easy, CURLOPT_RANGE, range); in main()
[all …]
/curl/docs/libcurl/
H A Dcurl_multi_add_handle.md19 curl_multi_add_handle - add an easy handle to a multi session
31 Adds the *easy handle* to the *multi_handle*.
33 While an easy handle is added to a multi stack, you cannot and you must not
34 use curl_easy_perform(3) on that handle. After having removed the easy
36 easy interface again.
38 If the easy handle is not set to use a shared (CURLOPT_SHARE(3)) cache,
39 it is made to use a DNS cache that is shared between all easy handles within
43 connection cache owned by the multi handle. Removing and adding new easy
55 specific easy handle is completed.
58 first the easy handle and then the multi handle:
[all …]

Completed in 34 milliseconds

1234567