/external/curl/tests/libtest/ |
lib562.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 40 CURL *curl; local 48 /* get a curl handle */ 49 if((curl = curl_easy_init()) == NULL) { 56 test_setopt(curl, CURLOPT_VERBOSE, 1L); 59 test_setopt(curl, CURLOPT_PORT, strtol(libtest_arg2, NULL, 10)); 62 test_setopt(curl, CURLOPT_URL, URL); 65 res = curl_easy_perform(curl); 69 curl_easy_cleanup(curl); [all...] |
lib567.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 32 CURL *curl; local 40 if((curl = curl_easy_init()) == NULL) { 47 test_setopt(curl, CURLOPT_HEADERDATA, stdout); 48 test_setopt(curl, CURLOPT_WRITEDATA, stdout); 50 test_setopt(curl, CURLOPT_URL, URL); 51 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, URL); 52 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_OPTIONS); 53 test_setopt(curl, CURLOPT_USERAGENT, "test567") [all...] |
lib574.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 36 CURL *curl; local 43 if((curl = curl_easy_init()) == NULL) { 49 test_setopt(curl, CURLOPT_URL, URL); 50 test_setopt(curl, CURLOPT_WILDCARDMATCH, 1L); 51 test_setopt(curl, CURLOPT_FNMATCH_FUNCTION, new_fnmatch); 53 res = curl_easy_perform(curl); 58 res = curl_easy_perform(curl); 65 curl_easy_cleanup(curl); [all...] |
lib590.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 26 https://curl.haxx.se/mail/lib-2011-10/0323.html 42 CURL *curl; local 49 if((curl = curl_easy_init()) == NULL) { 55 test_setopt(curl, CURLOPT_URL, URL); 56 test_setopt(curl, CURLOPT_HEADER, 1L); 57 test_setopt(curl, CURLOPT_PROXYAUTH, 59 test_setopt(curl, CURLOPT_PROXY, libtest_arg2); /* set in first.c */ 60 test_setopt(curl, CURLOPT_PROXYUSERPWD, "me:password") [all...] |
lib598.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 29 CURL *curl; local 36 if((curl = curl_easy_init()) == NULL) { 42 test_setopt(curl, CURLOPT_URL, URL); 43 test_setopt(curl, CURLOPT_HEADER, 1L); 44 test_setopt(curl, CURLOPT_REFERER, "http://example.com/the-moo"); 45 test_setopt(curl, CURLOPT_USERAGENT, "the-moo agent next generation"); 46 test_setopt(curl, CURLOPT_COOKIE, "name=moo"); 47 test_setopt(curl, CURLOPT_VERBOSE, 1L) [all...] |
lib1528.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 29 CURL *curl = NULL; local 40 if((curl = curl_easy_init()) == NULL) { 53 test_setopt(curl, CURLOPT_URL, URL); 54 test_setopt(curl, CURLOPT_PROXY, libtest_arg2); 55 test_setopt(curl, CURLOPT_HTTPHEADER, hhl); 56 test_setopt(curl, CURLOPT_PROXYHEADER, phl); 57 test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_SEPARATE); 58 test_setopt(curl, CURLOPT_VERBOSE, 1L) [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...] |
lib512.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 32 CURL *curl; local 33 CURL *curl2; 39 curl = curl_easy_init(); 40 if(curl) { 42 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); 43 curl_easy_setopt(curl, CURLOPT_HEADER, 1L); 45 curl2 = curl_easy_duphandle(curl); 65 curl_easy_cleanup(curl); [all...] |
lib539.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 29 CURL *curl; local 38 if((curl = curl_easy_init()) == NULL) { 45 * Begin with curl set to use a single CWD to the URL's directory. 47 test_setopt(curl, CURLOPT_URL, URL); 48 test_setopt(curl, CURLOPT_VERBOSE, 1L); 49 test_setopt(curl, CURLOPT_FTP_FILEMETHOD, (long) CURLFTPMETHOD_SINGLECWD); 51 res = curl_easy_perform(curl); 56 * QUOTE command, after which curl will CWD to ftp_conn->entrypath and the [all...] |
lib544.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 42 CURL *curl; local 50 if((curl = curl_easy_init()) == NULL) { 57 test_setopt(curl, CURLOPT_URL, URL); 60 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long) sizeof teststring); 63 test_setopt(curl, CURLOPT_COPYPOSTFIELDS, teststring); 65 test_setopt(curl, CURLOPT_VERBOSE, 1L); /* show verbose for debug */ 66 test_setopt(curl, CURLOPT_HEADER, 1L); /* include header */ 73 CURL *handle2 [all...] |
lib566.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 29 CURL *curl; local 38 if((curl = curl_easy_init()) == NULL) { 44 test_setopt(curl, CURLOPT_URL, URL); 45 test_setopt(curl, CURLOPT_HEADER, 1L); 47 res = curl_easy_perform(curl); 51 res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, 62 curl_easy_cleanup(curl);
|
lib583.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 24 * https://curl.haxx.se/mail/lib-2011-03/0066.html 37 CURL *curl = NULL; local 44 easy_init(curl); 46 easy_setopt(curl, CURLOPT_USERPWD, libtest_arg2); 47 easy_setopt(curl, CURLOPT_SSH_PUBLIC_KEYFILE, "curl_client_key.pub"); 48 easy_setopt(curl, CURLOPT_SSH_PRIVATE_KEYFILE, "curl_client_key"); 50 easy_setopt(curl, CURLOPT_UPLOAD, 1L); 51 easy_setopt(curl, CURLOPT_VERBOSE, 1L) [all...] |
lib1525.c | 13 * are also available at https://curl.haxx.se/docs/copyright.html. 37 size_t amount = nmemb * size; /* Total bytes curl wants */ 49 CURL *curl = NULL; local 59 if((curl = curl_easy_init()) == NULL) { 71 test_setopt(curl, CURLOPT_URL, URL); 72 test_setopt(curl, CURLOPT_PROXY, libtest_arg2); 73 test_setopt(curl, CURLOPT_HTTPHEADER, hhl); 74 test_setopt(curl, CURLOPT_PROXYHEADER, hhl); 75 test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_UNIFIED) [all...] |
lib541.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 36 CURL *curl; local 81 /* get a curl handle */ 82 if((curl = curl_easy_init()) == NULL) { 90 test_setopt(curl, CURLOPT_UPLOAD, 1L); 93 test_setopt(curl, CURLOPT_VERBOSE, 1L); 96 test_setopt(curl, CURLOPT_URL, URL); 99 test_setopt(curl, CURLOPT_READDATA, hd_src); 102 res = curl_easy_perform(curl); [all...] |
lib547.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 63 static curlioerr ioctlcallback(CURL *handle, 83 CURL *curl; local 93 if((curl = curl_easy_init()) == NULL) { 99 test_setopt(curl, CURLOPT_URL, URL); 100 test_setopt(curl, CURLOPT_VERBOSE, 1L); 101 test_setopt(curl, CURLOPT_HEADER, 1L); 104 test_setopt(curl, CURLOPT_POSTFIELDS, UPLOADTHIS); 107 test_setopt(curl, CURLOPT_IOCTLFUNCTION, ioctlcallback) [all...] |
lib570.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 34 CURL *curl; local 43 if((curl = curl_easy_init()) == NULL) { 49 test_setopt(curl, CURLOPT_HEADERDATA, stdout); 50 test_setopt(curl, CURLOPT_WRITEDATA, stdout); 51 test_setopt(curl, CURLOPT_VERBOSE, 1L); 53 test_setopt(curl, CURLOPT_URL, URL); 55 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_OPTIONS); 61 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri) [all...] |
lib578.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 53 CURL *curl; local 61 if((curl = curl_easy_init()) == NULL) { 68 test_setopt(curl, CURLOPT_URL, URL); 71 test_setopt(curl, CURLOPT_POST, 1L); 75 test_setopt(curl, CURLOPT_TRANSFERTEXT, 1L); 79 test_setopt(curl, CURLOPT_POSTFIELDSIZE, data_size); 80 test_setopt(curl, CURLOPT_POSTFIELDS, data); 83 test_setopt(curl, CURLOPT_NOPROGRESS, 0L) [all...] |
lib599.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 44 CURL *curl; local 53 if((curl = curl_easy_init()) == NULL) { 60 test_setopt(curl, CURLOPT_URL, URL); 63 test_setopt(curl, CURLOPT_NOPROGRESS, 0L); 64 test_setopt(curl, CURLOPT_PROGRESSFUNCTION, progress_callback); 67 test_setopt(curl, CURLOPT_VERBOSE, 1L); 70 test_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); 73 test_setopt(curl, CURLOPT_HEADER, 1L) [all...] |
/external/curl/docs/examples/ |
getredirect.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 27 #include <curl/curl.h> 31 CURL *curl; local 36 curl = curl_easy_init(); 37 if(curl) { 38 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); 43 res = curl_easy_perform(curl); 49 res = curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response_code) [all...] |
fileupload.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 27 #include <curl/curl.h> 33 CURL *curl; local 47 curl = curl_easy_init(); 48 if(curl) { 50 curl_easy_setopt(curl, CURLOPT_URL, 51 "file:///home/dast/src/curl/debug/new"); 54 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L) [all...] |
postit2.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 43 #include <curl/curl.h> 47 CURL *curl; local 79 curl = curl_easy_init(); 83 if(curl) { 85 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/examplepost.cgi"); 88 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headerlist); 89 curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost) [all...] |
certinfo.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 28 #include <curl/curl.h> 39 CURL *curl; local 44 curl = curl_easy_init(); 45 if(curl) { 46 curl_easy_setopt(curl, CURLOPT_URL, "https://www.example.com/"); 48 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, wrfu); 50 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L) [all...] |
cookie_interface.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 33 #include <curl/curl.h> 36 print_cookies(CURL *curl) 43 printf("Cookies, curl knows:\n"); 44 res = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies); 46 fprintf(stderr, "Curl curl_easy_getinfo failed: %s\n", 65 CURL *curl; local [all...] |
ftpget.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 24 #include <curl/curl.h> 51 CURL *curl; local 54 "curl.tar.gz", /* name to store the file as if successful */ 60 curl = curl_easy_init(); 61 if(curl) { 65 curl_easy_setopt(curl, CURLOPT_URL, 66 "ftp://ftp.example.com/curl/curl-7.9.2.tar.gz") [all...] |
ftpgetinfo.c | 12 * are also available at https://curl.haxx.se/docs/copyright.html. 25 #include <curl/curl.h> 44 CURL *curl; local 52 curl = curl_easy_init(); 53 if(curl) { 54 curl_easy_setopt(curl, CURLOPT_URL, ftpurl); 56 curl_easy_setopt(curl, CURLOPT_NOBODY, 1L); 58 curl_easy_setopt(curl, CURLOPT_FILETIME, 1L) [all...] |