/third_party/curl/tests/libtest/ |
D | lib1915.c | 102 CURL *hnd; in test() local 107 easy_init(hnd); in test() 108 easy_setopt(hnd, CURLOPT_URL, URL); in test() 109 easy_setopt(hnd, CURLOPT_HSTSREADFUNCTION, hstsread); in test() 110 easy_setopt(hnd, CURLOPT_HSTSREADDATA, &st); in test() 111 easy_setopt(hnd, CURLOPT_HSTSWRITEFUNCTION, hstswrite); in test() 112 easy_setopt(hnd, CURLOPT_HSTSWRITEDATA, &st); in test() 113 easy_setopt(hnd, CURLOPT_HSTS_CTRL, CURLHSTS_ENABLE); in test() 114 res = curl_easy_perform(hnd); in test() 115 curl_easy_cleanup(hnd); in test() [all …]
|
D | lib1662.c | 53 CURL *hnd; in test() local 62 hnd = curl_easy_init(); in test() 63 if(hnd) { in test() 64 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 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() 73 curl_easy_setopt(hnd, CURLOPT_MIMEPOST, mime1); in test() 74 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "curl/2000"); in test() 75 curl_easy_setopt(hnd, CURLOPT_FOLLOWLOCATION, 1L); in test() [all …]
|
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() 41 curl_easy_setopt(hnd, CURLOPT_HTTPAUTH, (long)CURLAUTH_DIGEST); in test() 42 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); in test() 43 curl_easy_setopt(hnd, CURLOPT_PORT, strtol(libtest_arg2, NULL, 10)); in test() [all …]
|
D | lib1523.c | 51 static CURLcode run(CURL *hnd, long limit, long time) in run() argument 53 curl_easy_setopt(hnd, CURLOPT_LOW_SPEED_LIMIT, limit); in run() 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() 66 curl_easy_setopt(hnd, CURLOPT_WRITEFUNCTION, write_cb); in test() 67 curl_easy_setopt(hnd, CURLOPT_ERRORBUFFER, buffer); in test() 68 curl_easy_setopt(hnd, CURLOPT_NOPROGRESS, 0L); in test() [all …]
|
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()
|
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()
|
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()
|
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()
|
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()
|
/third_party/curl/lib/ |
D | curl_threads.c | 83 void Curl_thread_destroy(curl_thread_t hnd) in Curl_thread_destroy() argument 85 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 93 int ret = (pthread_join(**hnd, NULL) == 0); in Curl_thread_join() 95 free(*hnd); in Curl_thread_join() 96 *hnd = curl_thread_t_null; in Curl_thread_join() 132 void Curl_thread_destroy(curl_thread_t hnd) in Curl_thread_destroy() argument 134 CloseHandle(hnd); in Curl_thread_destroy() [all …]
|
/third_party/curl/docs/examples/ |
D | http2-upload.c | 55 CURL *hnd; member 179 CURL *hnd; in setup() local 181 hnd = i->hnd = curl_easy_init(); in setup() 210 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, out); in setup() 213 curl_easy_setopt(hnd, CURLOPT_READFUNCTION, read_callback); in setup() 215 curl_easy_setopt(hnd, CURLOPT_READDATA, i); in setup() 217 curl_easy_setopt(hnd, CURLOPT_INFILESIZE_LARGE, uploadsize); in setup() 220 curl_easy_setopt(hnd, CURLOPT_URL, url); in setup() 223 curl_easy_setopt(hnd, CURLOPT_UPLOAD, 1L); in setup() 226 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in setup() [all …]
|
D | http2-download.c | 149 CURL *hnd; in setup() local 151 hnd = t->easy = curl_easy_init(); in setup() 163 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, t->out); in setup() 166 curl_easy_setopt(hnd, CURLOPT_URL, "https://localhost:8443/index.html"); in setup() 169 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in setup() 170 curl_easy_setopt(hnd, CURLOPT_DEBUGFUNCTION, my_trace); in setup() 171 curl_easy_setopt(hnd, CURLOPT_DEBUGDATA, t); in setup() 174 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 100000L); in setup() 177 curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); in setup() 181 curl_easy_setopt(hnd, CURLOPT_PIPEWAIT, 1L); in setup()
|
/third_party/curl/tests/data/ |
D | test1401 | 79 CURL *hnd; 86 hnd = curl_easy_init(); 87 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 88 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER"); 89 curl_easy_setopt(hnd, CURLOPT_USERPWD, "fake:user"); 90 curl_easy_setopt(hnd, CURLOPT_HTTPAUTH, (long)CURLAUTH_BASIC); 91 curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, slist1); 92 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "MyUA"); 93 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); 94 curl_easy_setopt(hnd, CURLOPT_COOKIE, "chocolate=chip"); [all …]
|
D | test1402 | 71 CURL *hnd; 73 hnd = curl_easy_init(); 74 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 75 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER"); 76 curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "foo=bar&baz=quux"); 77 curl_easy_setopt(hnd, CURLOPT_POSTFIELDSIZE_LARGE, (curl_off_t)16); 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); [all …]
|
D | test1465 | 74 CURL *hnd; 76 hnd = curl_easy_init(); 77 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 78 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER"); 79 curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "ab\201cd\000e\\\"\?\r\n\t\001fghi\x1ajklm\xfd"); 80 curl_easy_setopt(hnd, CURLOPT_POSTFIELDSIZE_LARGE, (curl_off_t)24); 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); [all …]
|
D | test1406 | 74 CURL *hnd; 81 hnd = curl_easy_init(); 82 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 83 curl_easy_setopt(hnd, CURLOPT_URL, "smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER"); 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); 88 curl_easy_setopt(hnd, CURLOPT_MAIL_FROM, "sender@example.com"); 89 curl_easy_setopt(hnd, CURLOPT_MAIL_RCPT, slist1); [all …]
|
D | test1407 | 61 CURL *hnd; 63 hnd = curl_easy_init(); 64 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 65 curl_easy_setopt(hnd, CURLOPT_URL, "pop3://%HOSTIP:%POP3PORT/%TESTNUMBER"); 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); [all …]
|
D | test1400 | 68 CURL *hnd; 70 hnd = curl_easy_init(); 71 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 72 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER"); 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); [all …]
|
D | test1403 | 68 CURL *hnd; 70 hnd = curl_easy_init(); 71 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 72 …curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER\?foo=bar&baz=quux… 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); [all …]
|
D | test1405 | 71 CURL *hnd; 85 hnd = curl_easy_init(); 86 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 87 curl_easy_setopt(hnd, CURLOPT_URL, "ftp://%HOSTIP:%FTPPORT/%TESTNUMBER"); 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); 92 curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L); 93 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); [all …]
|
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 …]
|
D | test1404 | 114 CURL *hnd; 127 hnd = curl_easy_init(); 128 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 129 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER"); 130 mime1 = curl_mime_init(hnd); 135 mime2 = curl_mime_init(hnd); 149 curl_easy_setopt(hnd, CURLOPT_MIMEPOST, mime1); 150 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped"); 151 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); 152 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); [all …]
|
/third_party/curl/src/ |
D | tool_cb_see.c | 98 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence) argument 104 # define _lseeki64(hnd,ofs,whence) _lseek(hnd,ofs,whence) argument 107 # define _lseeki64(hnd,ofs,whence) _lseek64(hnd,ofs,whence) argument 114 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence) argument
|
/third_party/selinux/libselinux/utils/ |
D | matchpathcon.c | 21 static int printmatchpathcon(struct selabel_handle *hnd, const char *path, int header, int mode, in… in printmatchpathcon() argument 27 rc = selabel_lookup_raw(hnd, &buf, path, mode); in printmatchpathcon() 29 rc = selabel_lookup(hnd, &buf, path, mode); in printmatchpathcon() 80 struct selabel_handle *hnd; in main() local 131 hnd = selabel_open(SELABEL_CTX_FILE, options, SELABEL_NOPT); in main() 132 if (!hnd) { in main() 177 printmatchpathcon(hnd, path, 0, mode, notrans); in main() 183 printmatchpathcon(hnd, path, 0, mode, notrans); in main() 187 error |= printmatchpathcon(hnd, path, header, mode, notrans); in main() 190 selabel_close(hnd); in main()
|
/third_party/curl/tests/unit/ |
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);
|