/curl/tests/libtest/ |
H A D | lib653.c | 33 CURL *curls = NULL; in test() local 39 easy_init(curls); in test() 41 mime = curl_mime_init(curls); in test() 46 easy_setopt(curls, CURLOPT_URL, URL); in test() 47 easy_setopt(curls, CURLOPT_HEADER, 1L); in test() 48 easy_setopt(curls, CURLOPT_VERBOSE, 1L); in test() 49 easy_setopt(curls, CURLOPT_MIMEPOST, mime); in test() 50 easy_setopt(curls, CURLOPT_NOPROGRESS, 1L); in test() 52 res = curl_easy_perform(curls); in test() 58 res = curl_easy_perform(curls); in test() [all …]
|
H A D | lib1553.c | 47 CURL *curls = NULL; in test() local 62 easy_init(curls); in test() 64 mime = curl_mime_init(curls); in test() 69 easy_setopt(curls, CURLOPT_URL, URL); in test() 70 easy_setopt(curls, CURLOPT_HEADER, 1L); in test() 71 easy_setopt(curls, CURLOPT_VERBOSE, 1L); in test() 72 easy_setopt(curls, CURLOPT_MIMEPOST, mime); in test() 73 easy_setopt(curls, CURLOPT_USERPWD, "u:s"); in test() 77 multi_add_handle(multi, curls); in test() 103 curl_multi_remove_handle(multi, curls); in test() [all …]
|
H A D | lib1540.c | 87 CURL *curls = NULL; in test() local 97 easy_init(curls); in test() 98 st.easy = curls; /* to allow callbacks access */ in test() 100 easy_setopt(curls, CURLOPT_URL, URL); in test() 101 easy_setopt(curls, CURLOPT_WRITEFUNCTION, write_callback); in test() 102 easy_setopt(curls, CURLOPT_WRITEDATA, &st); in test() 104 easy_setopt(curls, CURLOPT_HEADERDATA, &st); in test() 107 easy_setopt(curls, CURLOPT_XFERINFODATA, &st); in test() 108 easy_setopt(curls, CURLOPT_NOPROGRESS, 0L); in test() 110 res = curl_easy_perform(curls); in test() [all …]
|
H A D | lib1541.c | 115 CURL *curls = NULL; in test() local 125 easy_init(curls); in test() 126 st.easy = curls; /* to allow callbacks access */ in test() 128 easy_setopt(curls, CURLOPT_URL, URL); in test() 130 easy_setopt(curls, CURLOPT_WRITEDATA, &st); in test() 132 easy_setopt(curls, CURLOPT_HEADERDATA, &st); in test() 134 easy_setopt(curls, CURLOPT_NOPROGRESS, 0L); in test() 136 res = curl_easy_perform(curls); in test() 138 check_time(curls, KN(CURLINFO_CONNECT_TIME_T), "done"); in test() 144 check_time(curls, KN(CURLINFO_TOTAL_TIME_T), "done"); in test() [all …]
|
H A D | lib1485.c | 91 CURL *curls = NULL; in test() local 101 easy_init(curls); in test() 102 st.easy = curls; /* to allow callbacks access */ in test() 104 easy_setopt(curls, CURLOPT_URL, URL); in test() 105 easy_setopt(curls, CURLOPT_WRITEFUNCTION, write_callback); in test() 106 easy_setopt(curls, CURLOPT_WRITEDATA, &st); in test() 107 easy_setopt(curls, CURLOPT_HEADERFUNCTION, header_callback); in test() 108 easy_setopt(curls, CURLOPT_HEADERDATA, &st); in test() 110 easy_setopt(curls, CURLOPT_NOPROGRESS, 1L); in test() 112 res = curl_easy_perform(curls); in test() [all …]
|
H A D | lib1552.c | 34 CURL *curls = NULL; in test() local 48 easy_init(curls); in test() 50 easy_setopt(curls, CURLOPT_URL, URL); in test() 51 easy_setopt(curls, CURLOPT_HEADER, 1L); in test() 52 easy_setopt(curls, CURLOPT_VERBOSE, 1L); in test() 53 easy_setopt(curls, CURLOPT_USERPWD, "u:s"); in test() 55 multi_add_handle(multi, curls); in test() 89 curl_easy_cleanup(curls); in test()
|
H A D | lib1515.c | 54 CURL *curls; in do_one_request() local 63 easy_init(curls); in do_one_request() 65 easy_setopt(curls, CURLOPT_URL, URL); in do_one_request() 66 easy_setopt(curls, CURLOPT_RESOLVE, resolve_list); in do_one_request() 67 easy_setopt(curls, CURLOPT_DEBUGFUNCTION, debug_callback); in do_one_request() 68 easy_setopt(curls, CURLOPT_VERBOSE, 1); in do_one_request() 69 easy_setopt(curls, CURLOPT_DNS_CACHE_TIMEOUT, DNS_TIMEOUT); in do_one_request() 71 multi_add_handle(m, curls); in do_one_request() 98 if(msg && msg->msg == CURLMSG_DONE && msg->easy_handle == curls) { in do_one_request() 106 curl_multi_remove_handle(m, curls); in do_one_request() [all …]
|
H A D | lib1500.c | 34 CURL *curls = NULL; in test() local 47 easy_init(curls); in test() 49 easy_setopt(curls, CURLOPT_URL, URL); in test() 50 easy_setopt(curls, CURLOPT_HEADER, 1L); in test() 52 multi_add_handle(multi, curls); in test() 86 curl_easy_cleanup(curls); in test()
|
H A D | lib507.c | 34 CURL *curls = NULL; in test() local 47 easy_init(curls); in test() 49 easy_setopt(curls, CURLOPT_URL, URL); in test() 50 easy_setopt(curls, CURLOPT_HEADER, 1L); in test() 52 multi_add_handle(multi, curls); in test() 95 curl_easy_cleanup(curls); in test()
|