Home
last modified time | relevance | path

Searched refs:hnd (Results 1 – 25 of 32) sorted by relevance

12

/curl/tests/libtest/
H A Dlib1568.c32 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 Dlib1915.c102 CURL *hnd; in test() local
107 easy_init(hnd); in test()
108 easy_setopt(hnd, CURLOPT_URL, URL); in test()
114 res = curl_easy_perform(hnd); in test()
115 curl_easy_cleanup(hnd); in test()
116 hnd = NULL; in test()
120 easy_init(hnd); in test()
127 res = curl_easy_perform(hnd); in test()
128 curl_easy_cleanup(hnd); in test()
129 hnd = NULL; in test()
[all …]
H A Dlib1662.c53 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 Dlib1523.c51 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 Dlib1908.c33 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 Dlib1910.c33 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 Dlib1569.c32 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 Dlib1913.c33 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 Dlib3027.c33 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 Dlib1900.c33 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 Dcurl_threads.c85 if(hnd != curl_thread_t_null) { in Curl_thread_destroy()
86 pthread_detach(*hnd); in Curl_thread_destroy()
87 free(hnd); in Curl_thread_destroy()
91 int Curl_thread_join(curl_thread_t *hnd) in Curl_thread_join() argument
95 free(*hnd); in Curl_thread_join()
96 *hnd = curl_thread_t_null; in Curl_thread_join()
134 if(hnd != curl_thread_t_null) in Curl_thread_destroy()
135 CloseHandle(hnd); in Curl_thread_destroy()
138 int Curl_thread_join(curl_thread_t *hnd) in Curl_thread_join() argument
147 Curl_thread_destroy(*hnd); in Curl_thread_join()
[all …]
/curl/docs/examples/
H A Dhttp2-upload.c55 CURL *hnd; member
178 CURL *hnd; in setup() local
180 hnd = i->hnd = curl_easy_init(); in setup()
209 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, out); in setup()
214 curl_easy_setopt(hnd, CURLOPT_READDATA, i); in setup()
219 curl_easy_setopt(hnd, CURLOPT_URL, url); in setup()
222 curl_easy_setopt(hnd, CURLOPT_UPLOAD, 1L); in setup()
225 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in setup()
227 curl_easy_setopt(hnd, CURLOPT_DEBUGDATA, i); in setup()
238 curl_easy_setopt(hnd, CURLOPT_PIPEWAIT, 1L); in setup()
[all …]
H A Dhttp2-download.c148 CURL *hnd; in setup() local
150 hnd = t->easy = curl_easy_init(); in setup()
162 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, t->out); in setup()
165 curl_easy_setopt(hnd, CURLOPT_URL, "https://localhost:8443/index.html"); in setup()
168 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in setup()
169 curl_easy_setopt(hnd, CURLOPT_DEBUGFUNCTION, my_trace); in setup()
170 curl_easy_setopt(hnd, CURLOPT_DEBUGDATA, t); in setup()
173 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 100000L); in setup()
176 curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); in setup()
180 curl_easy_setopt(hnd, CURLOPT_PIPEWAIT, 1L); in setup()
H A Dhttp2-pushinmemory.c74 static void setup(CURL *hnd) in setup() argument
77 curl_easy_setopt(hnd, CURLOPT_URL, "https://localhost:8443/index.html"); in setup()
80 curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); in setup()
83 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYPEER, 0L); in setup()
84 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYHOST, 0L); in setup()
87 curl_easy_setopt(hnd, CURLOPT_WRITEFUNCTION, write_cb); in setup()
89 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, &files[0]); in setup()
92 curl_easy_setopt(hnd, CURLOPT_PIPEWAIT, 1L); in setup()
/curl/tests/unit/
H A Dunit1396.c26 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);
/curl/tests/data/
H A Dtest148173 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 Dtest140179 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 Dtest140271 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 Dtest146574 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 Dtest140068 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 Dtest140761 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 Dtest140674 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 Dtest140368 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 Dtest142067 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 Dtest140571 CURL *hnd;
85 hnd = curl_easy_init();
86 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L);
88 curl_easy_setopt(hnd, CURLOPT_QUOTE, slist1);
89 curl_easy_setopt(hnd, CURLOPT_POSTQUOTE, slist2);
90 curl_easy_setopt(hnd, CURLOPT_PREQUOTE, slist3);
91 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
93 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
114 ret = curl_easy_perform(hnd);
116 curl_easy_cleanup(hnd);
[all …]

Completed in 34 milliseconds

12