/curl/tests/libtest/ |
H A D | lib1940.c | 49 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 D | lib1542.c | 41 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 D | lib1945.c | 33 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 D | lib1502.c | 44 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 D | lib1939.c | 32 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 D | lib543.c | 37 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 D | lib667.c | 59 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 D | lib670.c | 36 CURL *easy; member 88 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() 182 mres = curl_multi_add_handle(multi, pooh.easy); in test() 238 curl_multi_remove_handle(multi, pooh.easy); in test() 246 res = curl_easy_perform(pooh.easy); in test() [all …]
|
H A D | lib591.c | 40 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 D | lib668.c | 53 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 D | lib597.c | 45 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 D | lib2405.c | 81 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 D | lib1541.c | 31 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 D | lib654.c | 67 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 D | unit1606.c | 29 static struct Curl_easy *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 D | unit1605.c | 28 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 D | unit1609.c | 106 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; 215 curl_easy_cleanup(easy);
|
H A D | unit1608.c | 57 struct Curl_easy *easy = curl_easy_init(); variable 58 abort_unless(easy, "out of memory"); 60 code = curl_easy_setopt(easy, CURLOPT_DNS_SHUFFLE_ADDRESSES, 1L); 65 if(CURLE_OK != Curl_shuffle_addr(easy, &addrhead)) 71 curl_easy_cleanup(easy);
|
/curl/lib/ |
H A D | psl.c | 56 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 D | psl.h | 40 const psl_ctx_t *Curl_psl_use(struct Curl_easy *easy); 41 void Curl_psl_release(struct Curl_easy *easy); 46 #define Curl_psl_use(easy) NULL argument 47 #define Curl_psl_release(easy) argument
|
/curl/docs/examples/ |
H A D | ghiper.c | 81 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 D | hiperfifo.c | 96 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 D | evhiperfifo.c | 98 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 D | h2-upgrade-extreme.c | 144 CURL *easy; in main() local 166 easy = curl_easy_init(); in main() 167 if(!easy) { in main() 171 curl_easy_setopt(easy, CURLOPT_VERBOSE, 1L); in main() 173 curl_easy_setopt(easy, CURLOPT_URL, url); in main() 174 curl_easy_setopt(easy, CURLOPT_NOSIGNAL, 1L); in main() 175 curl_easy_setopt(easy, CURLOPT_AUTOREFERER, 1L); in main() 176 curl_easy_setopt(easy, CURLOPT_FAILONERROR, 1L); in main() 180 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 D | curl_multi_add_handle.md | 20 curl_multi_add_handle - add an easy handle to a multi session 32 Adds the *easy handle* to the *multi_handle*. 34 While an easy handle is added to a multi stack, you cannot and you must not 35 use curl_easy_perform(3) on that handle. After having removed the easy 37 easy interface again. 39 If the easy handle is not set to use a shared (CURLOPT_SHARE(3)) cache, 40 it is made to use a DNS cache that is shared between all easy handles within 44 connection cache owned by the multi handle. Removing and adding new easy 56 specific easy handle is completed. 59 first the easy handle and then the multi handle: [all …]
|