/curl/tests/libtest/ |
H A D | lib1915.c | 103 CURL *hnd; in test() local 111 easy_init(hnd); in test() 112 easy_setopt(hnd, CURLOPT_URL, URL); in test() 122 res = curl_easy_perform(hnd); in test() 123 curl_easy_cleanup(hnd); in test() 124 hnd = NULL; in test() 130 easy_init(hnd); in test() 141 res = curl_easy_perform(hnd); in test() 142 curl_easy_cleanup(hnd); in test() 143 hnd = NULL; in test() [all …]
|
H A D | lib1568.c | 32 CURL *hnd; in test() local 35 hnd = curl_easy_init(); in test() 36 curl_easy_setopt(hnd, CURLOPT_URL, URL); in test() 37 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in test() 38 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L); in test() 39 curl_easy_setopt(hnd, CURLOPT_USERPWD, "testuser:testpass"); in test() 40 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "lib1568"); in test() 42 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); in test() 45 ret = curl_easy_perform(hnd); in test() 47 curl_easy_cleanup(hnd); in test() [all …]
|
H A D | lib1662.c | 53 CURL *hnd; in test() local 62 hnd = curl_easy_init(); in test() 63 if(hnd) { in test() 65 curl_easy_setopt(hnd, CURLOPT_URL, URL); in test() 66 curl_easy_setopt(hnd, CURLOPT_NOPROGRESS, 1L); in test() 67 mime1 = curl_mime_init(hnd); in test() 76 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); in test() 77 curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, in test() 79 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in test() 82 res = curl_easy_perform(hnd); in test() [all …]
|
H A D | lib1523.c | 51 static CURLcode run(CURL *hnd, long limit, long time) in run() argument 54 curl_easy_setopt(hnd, CURLOPT_LOW_SPEED_TIME, time); in run() 55 return curl_easy_perform(hnd); in run() 61 CURL *hnd; in test() local 64 hnd = curl_easy_init(); in test() 65 curl_easy_setopt(hnd, CURLOPT_URL, URL); in test() 67 curl_easy_setopt(hnd, CURLOPT_ERRORBUFFER, buffer); in test() 68 curl_easy_setopt(hnd, CURLOPT_NOPROGRESS, 0L); in test() 71 ret = run(hnd, 1, 2); in test() 75 ret = run(hnd, 12000, 1); in test() [all …]
|
H A D | lib1908.c | 33 CURL *hnd; in test() local 38 hnd = curl_easy_init(); in test() 39 if(hnd) { in test() 40 curl_easy_setopt(hnd, CURLOPT_URL, URL); in test() 41 curl_easy_setopt(hnd, CURLOPT_NOPROGRESS, 1L); in test() 42 curl_easy_setopt(hnd, CURLOPT_ALTSVC, libtest_arg2); in test() 43 ret = curl_easy_perform(hnd); in test() 47 CURL *also = curl_easy_duphandle(hnd); in test() 56 curl_easy_reset(hnd); in test() 60 curl_easy_cleanup(hnd); in test()
|
H A D | lib1910.c | 33 CURL *hnd; in test() local 38 hnd = curl_easy_init(); in test() 39 if(hnd) { in test() 40 curl_easy_setopt(hnd, CURLOPT_URL, URL); in test() 41 curl_easy_setopt(hnd, CURLOPT_NOPROGRESS, 1L); in test() 42 curl_easy_setopt(hnd, CURLOPT_FOLLOWLOCATION, 1L); in test() 43 curl_easy_setopt(hnd, CURLOPT_USERPWD, "user\nname:pass\nword"); in test() 44 ret = curl_easy_perform(hnd); in test() 45 curl_easy_cleanup(hnd); in test()
|
H A D | lib1569.c | 32 CURL *hnd; in test() local 35 easy_init(hnd); in test() 36 easy_setopt(hnd, CURLOPT_URL, URL); in test() 37 easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in test() 38 easy_setopt(hnd, CURLOPT_HEADER, 1L); in test() 40 res = curl_easy_perform(hnd); in test() 44 curl_easy_setopt(hnd, CURLOPT_URL, libtest_arg2); in test() 45 res = curl_easy_perform(hnd); in test() 48 curl_easy_cleanup(hnd); in test()
|
H A D | lib1913.c | 33 CURL *hnd; in test() local 38 hnd = curl_easy_init(); in test() 39 if(hnd) { in test() 40 curl_easy_setopt(hnd, CURLOPT_URL, URL); in test() 41 curl_easy_setopt(hnd, CURLOPT_NOBODY, 1L); in test() 44 curl_easy_setopt(hnd, CURLOPT_FILETIME, 1L); in test() 45 ret = curl_easy_perform(hnd); in test() 46 curl_easy_cleanup(hnd); in test()
|
H A D | lib3027.c | 33 CURL *hnd; in test() local 38 hnd = curl_easy_init(); in test() 39 if(hnd) { in test() 40 curl_easy_setopt(hnd, CURLOPT_URL, URL); in test() 41 curl_easy_setopt(hnd, CURLOPT_FILETIME, 1L); in test() 42 ret = curl_easy_perform(hnd); in test() 45 ret = curl_easy_getinfo(hnd, CURLINFO_FILETIME, &filetime); in test() 52 curl_easy_cleanup(hnd); in test()
|
H A D | lib1900.c | 33 CURL *hnd = NULL; in test() local 38 easy_init(hnd); in test() 39 easy_setopt(hnd, CURLOPT_URL, URL); in test() 40 easy_setopt(hnd, CURLOPT_HSTS, "first-hsts.txt"); in test() 41 easy_setopt(hnd, CURLOPT_HSTS, "second-hsts.txt"); in test() 43 second = curl_easy_duphandle(hnd); in test() 45 curl_easy_cleanup(hnd); in test() 51 curl_easy_cleanup(hnd); in test()
|
/curl/lib/ |
H A D | curl_threads.c | 87 if(hnd != curl_thread_t_null) { in Curl_thread_destroy() 88 pthread_detach(*hnd); in Curl_thread_destroy() 89 free(hnd); in Curl_thread_destroy() 93 int Curl_thread_join(curl_thread_t *hnd) in Curl_thread_join() argument 97 free(*hnd); in Curl_thread_join() 98 *hnd = curl_thread_t_null; in Curl_thread_join() 141 if(hnd != curl_thread_t_null) in Curl_thread_destroy() 142 CloseHandle(hnd); in Curl_thread_destroy() 145 int Curl_thread_join(curl_thread_t *hnd) in Curl_thread_join() argument 154 Curl_thread_destroy(*hnd); in Curl_thread_join() [all …]
|
/curl/docs/examples/ |
H A D | http2-upload.c | 78 CURL *hnd; member 201 CURL *hnd; in setup() local 203 hnd = i->hnd = curl_easy_init(); in setup() 232 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, out); in setup() 237 curl_easy_setopt(hnd, CURLOPT_READDATA, i); in setup() 242 curl_easy_setopt(hnd, CURLOPT_URL, url); in setup() 245 curl_easy_setopt(hnd, CURLOPT_UPLOAD, 1L); in setup() 248 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in setup() 250 curl_easy_setopt(hnd, CURLOPT_DEBUGDATA, i); in setup() 261 curl_easy_setopt(hnd, CURLOPT_PIPEWAIT, 1L); in setup() [all …]
|
H A D | http2-download.c | 144 CURL *hnd; in setup() local 146 hnd = t->easy = curl_easy_init(); in setup() 158 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, t->out); in setup() 161 curl_easy_setopt(hnd, CURLOPT_URL, "https://localhost:8443/index.html"); in setup() 164 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in setup() 165 curl_easy_setopt(hnd, CURLOPT_DEBUGFUNCTION, my_trace); in setup() 166 curl_easy_setopt(hnd, CURLOPT_DEBUGDATA, t); in setup() 169 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 100000L); in setup() 172 curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); in setup() 176 curl_easy_setopt(hnd, CURLOPT_PIPEWAIT, 1L); in setup()
|
H A D | http2-pushinmemory.c | 70 static void setup(CURL *hnd) in setup() argument 73 curl_easy_setopt(hnd, CURLOPT_URL, "https://localhost:8443/index.html"); in setup() 76 curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); in setup() 79 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYPEER, 0L); in setup() 80 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYHOST, 0L); in setup() 83 curl_easy_setopt(hnd, CURLOPT_WRITEFUNCTION, write_cb); in setup() 85 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, &files[0]); in setup() 88 curl_easy_setopt(hnd, CURLOPT_PIPEWAIT, 1L); in setup()
|
/curl/tests/data/ |
H A D | test1481 | 73 CURL *hnd; 75 hnd = curl_easy_init(); 76 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 77 curl_easy_setopt(hnd, CURLOPT_URL, "http://moo/"); 80 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); 83 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); 85 curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L); 87 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); 108 ret = curl_easy_perform(hnd); 110 curl_easy_cleanup(hnd); [all …]
|
H A D | test1401 | 79 CURL *hnd; 86 hnd = curl_easy_init(); 87 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 91 curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, slist1); 92 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "MyUA"); 93 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); 95 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); 99 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); 121 ret = curl_easy_perform(hnd); 123 curl_easy_cleanup(hnd); [all …]
|
H A D | test1402 | 71 CURL *hnd; 73 hnd = curl_easy_init(); 74 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 78 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped"); 79 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); 80 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); 82 curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L); 84 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); 105 ret = curl_easy_perform(hnd); 107 curl_easy_cleanup(hnd); [all …]
|
H A D | test1465 | 74 CURL *hnd; 76 hnd = curl_easy_init(); 77 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 81 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "curl/%VERSION"); 82 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); 83 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); 85 curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L); 87 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); 108 ret = curl_easy_perform(hnd); 110 curl_easy_cleanup(hnd); [all …]
|
H A D | test1400 | 68 CURL *hnd; 70 hnd = curl_easy_init(); 71 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 73 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped"); 74 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); 75 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); 77 curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L); 79 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); 100 ret = curl_easy_perform(hnd); 102 curl_easy_cleanup(hnd); [all …]
|
H A D | test1407 | 61 CURL *hnd; 63 hnd = curl_easy_init(); 64 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 66 curl_easy_setopt(hnd, CURLOPT_DIRLISTONLY, 1L); 67 curl_easy_setopt(hnd, CURLOPT_USERPWD, "user:secret"); 68 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); 69 curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L); 70 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); 91 ret = curl_easy_perform(hnd); 93 curl_easy_cleanup(hnd); [all …]
|
H A D | test1406 | 74 CURL *hnd; 81 hnd = curl_easy_init(); 82 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 84 curl_easy_setopt(hnd, CURLOPT_UPLOAD, 1L); 85 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); 86 curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L); 87 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); 89 curl_easy_setopt(hnd, CURLOPT_MAIL_RCPT, slist1); 111 ret = curl_easy_perform(hnd); 113 curl_easy_cleanup(hnd); [all …]
|
H A D | test1403 | 68 CURL *hnd; 70 hnd = curl_easy_init(); 71 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 73 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped"); 74 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); 75 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); 77 curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L); 79 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); 100 ret = curl_easy_perform(hnd); 102 curl_easy_cleanup(hnd); [all …]
|
H A D | test1420 | 67 CURL *hnd; 69 hnd = curl_easy_init(); 70 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 71 curl_easy_setopt(hnd, CURLOPT_URL, "imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1"); 72 curl_easy_setopt(hnd, CURLOPT_USERPWD, "user:secret"); 73 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); 74 curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L); 75 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); 96 ret = curl_easy_perform(hnd); 98 curl_easy_cleanup(hnd); [all …]
|
H A D | test1405 | 74 CURL *hnd; 88 hnd = curl_easy_init(); 89 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 91 curl_easy_setopt(hnd, CURLOPT_QUOTE, slist1); 92 curl_easy_setopt(hnd, CURLOPT_POSTQUOTE, slist2); 93 curl_easy_setopt(hnd, CURLOPT_PREQUOTE, slist3); 94 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); 96 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); 117 ret = curl_easy_perform(hnd); 119 curl_easy_cleanup(hnd); [all …]
|
/curl/tests/unit/ |
H A D | unit1396.c | 26 static CURL *hnd; variable 38 if(hnd) in unit_stop() 39 curl_easy_cleanup(hnd); in unit_stop() 84 hnd = curl_easy_init(); 85 abort_unless(hnd != NULL, "returned NULL!"); 88 char *out = curl_easy_unescape(hnd, 104 char *out = curl_easy_escape(hnd, list2[i].in, list2[i].inlen);
|