/external/curl/tests/libtest/ |
lib555.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 62 static curlioerr ioctlcallback(CURL *handle, 79 CURL *curl = NULL; local 88 easy_init(curl); 90 easy_setopt(curl, CURLOPT_URL, URL); 91 easy_setopt(curl, CURLOPT_VERBOSE, 1L); 92 easy_setopt(curl, CURLOPT_HEADER, 1L); 95 easy_setopt(curl, CURLOPT_IOCTLFUNCTION, ioctlcallback); 96 easy_setopt(curl, CURLOPT_IOCTLDATA, &counter) [all...] |
lib1512.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 38 CURL *curl[NUM_HANDLES] = {NULL, NULL}; local 52 snprintf(dnsentry, sizeof(dnsentry), "server.example.curl:%s:%s", 60 easy_init(curl[i]); 63 "http://server.example.curl:%s/path/1512%04i", 66 easy_setopt(curl[i], CURLOPT_URL, target_url); 68 easy_setopt(curl[i], CURLOPT_VERBOSE, 1L); 70 easy_setopt(curl[i], CURLOPT_HEADER, 1L); 72 easy_setopt(curl[i], CURLOPT_DNS_USE_GLOBAL_CACHE, 1L) [all...] |
lib530.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 35 CURL *curl[NUM_HANDLES]; local 43 curl[i] = NULL; 54 easy_init(curl[i]); 58 easy_setopt(curl[i], CURLOPT_URL, target_url); 60 easy_setopt(curl[i], CURLOPT_VERBOSE, 1L); 62 easy_setopt(curl[i], CURLOPT_HEADER, 1L); 68 multi_add_handle(m, curl[handles_added++]); 93 multi_add_handle(m, curl[handles_added++]) [all...] |
lib541.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 36 CURL *curl; local 78 /* get a curl handle */ 79 curl = curl_easy_init(); 80 if(!curl) { 88 test_setopt(curl, CURLOPT_UPLOAD, 1L); 91 test_setopt(curl, CURLOPT_VERBOSE, 1L); 94 test_setopt(curl, CURLOPT_URL, URL); 97 test_setopt(curl, CURLOPT_READDATA, hd_src) [all...] |
lib1507.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 50 CURL *curl = NULL; local 58 easy_init(curl); 67 curl_easy_setopt(curl, CURLOPT_URL, URL); 69 curl_easy_setopt(curl, CURLOPT_USERNAME, USERNAME); 70 curl_easy_setopt(curl, CURLOPT_PASSWORD, PASSWORD); 72 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); 73 curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback); 74 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, MAILFROM) [all...] |
lib505.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 39 CURL *curl; local 86 /* get a curl handle */ 87 curl = curl_easy_init(); 88 if(!curl) { 100 curl_easy_cleanup(curl); 109 curl_easy_cleanup(curl); 117 test_setopt(curl, CURLOPT_UPLOAD, 1L); 120 test_setopt(curl, CURLOPT_VERBOSE, 1L) [all...] |
lib525.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 35 CURL *curl = NULL; local 80 easy_init(curl); 83 easy_setopt(curl, CURLOPT_UPLOAD, 1L); 86 easy_setopt(curl, CURLOPT_URL, URL); 89 easy_setopt(curl, CURLOPT_VERBOSE, 1L); 92 easy_setopt(curl, CURLOPT_FTPPORT, "-"); 95 easy_setopt(curl, CURLOPT_READDATA, hd_src); 106 easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, (curl_off_t)file_info.st_size) [all...] |
lib553.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 60 CURL *curl; local 70 curl = curl_easy_init(); 71 if(!curl) { 92 test_setopt(curl, CURLOPT_URL, URL); 93 test_setopt(curl, CURLOPT_HTTPHEADER, headerlist); 94 test_setopt(curl, CURLOPT_POST, 1L); 97 test_setopt(curl, CURLOPT_TRANSFERTEXT, 1L); 99 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)POSTLEN) [all...] |
lib506.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 43 static void my_lock(CURL *handle, curl_lock_data data, 83 static void my_unlock(CURL *handle, curl_lock_data data, void *useptr) 133 CURL *curl; local 136 curl = curl_easy_init(); 137 if(!curl) { 143 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); 144 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers); 145 curl_easy_setopt(curl, CURLOPT_URL, tdata->url) 179 CURL *curl; local [all...] |
lib1521.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 105 CURL *curl = NULL; local 106 CURL *dep = NULL; 130 easy_init(curl); 137 res = curl_easy_setopt(curl, CURLOPT_WRITEDATA, &object); 140 res = curl_easy_setopt(curl, CURLOPT_WRITEDATA, NULL); 143 res = curl_easy_setopt(curl, CURLOPT_URL, "string"); 146 res = curl_easy_setopt(curl, CURLOPT_URL, NULL); 149 res = curl_easy_setopt(curl, CURLOPT_PORT, 0L) [all...] |
lib571.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 104 CURL *curl; local 121 curl = curl_easy_init(); 122 if(!curl) { 128 test_setopt(curl, CURLOPT_URL, URL); 135 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri); 139 test_setopt(curl, CURLOPT_INTERLEAVEFUNCTION, rtp_write); 140 test_setopt(curl, CURLOPT_TIMEOUT, 3L); 141 test_setopt(curl, CURLOPT_VERBOSE, 1L) [all...] |
lib1509.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 37 CURL *curl = NULL; local 42 easy_init(curl); 44 easy_setopt(curl, CURLOPT_PROXY, libtest_arg2); /* set in first.c */ 46 easy_setopt(curl, CURLOPT_WRITEFUNCTION, *WriteOutput); 47 easy_setopt(curl, CURLOPT_HEADERFUNCTION, *WriteHeader); 49 easy_setopt(curl, CURLOPT_HEADER, 1L); 50 easy_setopt(curl, CURLOPT_VERBOSE, 1L); 51 easy_setopt(curl, CURLOPT_URL, URL) [all...] |
test1013.pl | 2 # Determine if curl-config --protocols/--features matches the 3 # curl --version protocols/features 6 print "Usage: $0 curl-config-script curl-version-output-file features|protocols\n"; 12 # Read the output of curl --version 14 open(CURL, "$ARGV[1]") || die "Can't get curl $what list\n"; 15 while( <CURL> ) 19 close CURL; 23 @curl = split / /,$1 [all...] |
lib1510.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 35 CURL *curl = NULL; local 63 easy_init(curl); 66 easy_setopt(curl, CURLOPT_VERBOSE, 1L); 68 easy_setopt(curl, CURLOPT_HEADER, 1L); 70 easy_setopt(curl, CURLOPT_RESOLVE, slist); 72 easy_setopt(curl, CURLOPT_MAXCONNECTS, 3L); 81 easy_setopt(curl, CURLOPT_URL, target_url); 83 res = curl_easy_perform(curl); [all...] |
lib1534.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 30 CURL *curl, *dupe = NULL; local 36 easy_init(curl); 41 res = curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime); 54 easy_setopt(curl, CURLOPT_URL, URL); 55 easy_setopt(curl, CURLOPT_FILETIME, 1L); 57 res = curl_easy_perform(curl); 67 res = curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime); 84 dupe = curl_easy_duphandle(curl); [all...] |
/external/curl/docs/examples/ |
href_extractor.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 33 #include <curl/curl.h> 56 CURL *curl; local 64 curl = curl_easy_init(); 74 curl_easy_setopt(curl, CURLOPT_URL, argv[1]); 75 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback); 76 curl_easy_setopt(curl, CURLOPT_WRITEDATA, hsp); 77 curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L) [all...] |
ftpupload.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 25 #include <curl/curl.h> 68 CURL *curl; local 93 /* get a curl handle */ 94 curl = curl_easy_init(); 95 if(curl) { 101 curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback); 104 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L) [all...] |
rtsp.c | 59 #include <curl/curl.h> 77 static void rtsp_options(CURL *curl, const char *uri) 81 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); 82 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_OPTIONS); 83 my_curl_easy_perform(curl); 88 static void rtsp_describe(CURL *curl, const char *uri, 101 my_curl_easy_setopt(curl, CURLOPT_WRITEDATA, sdp_fp) 233 CURL *curl; local [all...] |
multi-post.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 31 #include <curl/curl.h> 35 CURL *curl; local 45 curl = curl_easy_init(); 48 if(curl && multi_handle) { 50 form = curl_mime_init(curl); 72 curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/upload.cgi"); 73 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L) [all...] |
sendrecv.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 29 #include <curl/curl.h> 61 CURL *curl; local 77 curl = curl_easy_init(); 78 if(curl) { 79 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); 81 curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, 1L); 82 res = curl_easy_perform(curl); [all...] |
externalsocket.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 30 #include <curl/curl.h> 93 CURL *curl; local 107 curl = curl_easy_init(); 108 if(curl) { 113 curl_easy_setopt(curl, CURLOPT_URL, "http://99.99.99.99:9999"); 138 curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1L); 141 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data) [all...] |
imap-multi.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 30 #include <curl/curl.h> 60 CURL *curl; local 67 curl = curl_easy_init(); 68 if(!curl) 76 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); 77 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); 80 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/INBOX/;UID=1") [all...] |
multi-formadd.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 31 #include <curl/curl.h> 35 CURL *curl; local 67 curl = curl_easy_init(); 73 if(curl && multi_handle) { 76 curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/upload.cgi"); 77 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); 79 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headerlist) [all...] |
pop3-multi.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 30 #include <curl/curl.h> 60 CURL *curl; local 67 curl = curl_easy_init(); 68 if(!curl) 76 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); 77 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); 80 curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1") [all...] |
/external/curl/packages/vms/ |
stage_curl_install.com | 5 $! This updates or removes the GNV$CURL.EXE and related files for the 9 $! [usr.bin]gnv$curl.exe 10 $! [usr.bin]curl-config. 12 $! [usr.bin]curl. hard link for [usr.bin]gnv$curl.exe 13 $! [usr.include.curl]curl.h 14 $! [usr.include.curl]curlver.h 15 $! [usr.include.curl]easy.h 16 $! [usr.include.curl]mprintf. [all...] |