/macosx-10.10/curl-83.1.2/curl/docs/examples/ |
H A D | persistant.c | 12 * are also available at http://curl.haxx.se/docs/copyright.html. 24 #include <curl/curl.h> 28 CURL *curl; local 33 curl = curl_easy_init(); 34 if(curl) { 35 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); 36 curl_easy_setopt(curl, CURLOPT_HEADER, 1L); 39 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/"); 42 res = curl_easy_perform(curl); [all...] |
H A D | pop3-dele.c | 12 * are also available at http://curl.haxx.se/docs/copyright.html. 23 #include <curl/curl.h> 33 CURL *curl; local 36 curl = curl_easy_init(); 37 if(curl) { 39 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); 40 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); 43 curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1"); 46 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES [all...] |
H A D | pop3-noop.c | 12 * are also available at http://curl.haxx.se/docs/copyright.html. 23 #include <curl/curl.h> 33 CURL *curl; local 36 curl = curl_easy_init(); 37 if(curl) { 39 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); 40 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); 43 curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com"); 46 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES [all...] |
H A D | pop3-stat.c | 12 * are also available at http://curl.haxx.se/docs/copyright.html. 23 #include <curl/curl.h> 33 CURL *curl; local 36 curl = curl_easy_init(); 37 if(curl) { 39 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); 40 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); 43 curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com"); 46 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES [all...] |
H A D | httpcustomheader.c | 12 * are also available at http://curl.haxx.se/docs/copyright.html. 23 #include <curl/curl.h> 27 CURL *curl; local 30 curl = curl_easy_init(); 31 if(curl) { 38 curl_easy_setopt(curl, CURLOPT_URL, "localhost"); 39 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); 40 res = curl_easy_perform(curl); 47 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADE [all...] |
H A D | smtp-expn.c | 12 * are also available at http://curl.haxx.se/docs/copyright.html. 24 #include <curl/curl.h> 36 CURL *curl; local 40 curl = curl_easy_init(); 41 if(curl) { 43 curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.com"); 47 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients); 50 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "EXPN"); 53 res = curl_easy_perform(curl); [all...] |
H A D | fileupload.c | 12 * are also available at http://curl.haxx.se/docs/copyright.html. 23 #include <curl/curl.h> 29 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); 57 curl_easy_setopt(curl, CURLOPT_READDAT [all...] |
H A D | progressfunc.c | 12 * are also available at http://curl.haxx.se/docs/copyright.html. 23 #include <curl/curl.h> 30 CURL *curl; member in struct:myprogress 39 CURL *curl = myp->curl; local 42 curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &curtime); 77 CURL *curl; local 81 curl = curl_easy_init(); 82 if(curl) { [all...] |
/macosx-10.10/curl-83.1.2/curl/tests/libtest/ |
H A D | lib514.c | 12 * are also available at http://curl.haxx.se/docs/copyright.html. 28 CURL *curl; local 36 if ((curl = curl_easy_init()) == NULL) { 43 test_setopt(curl, CURLOPT_URL, URL); 54 test_setopt(curl, CURLOPT_POSTFIELDS, "moo"); 55 test_setopt(curl, CURLOPT_POSTFIELDSIZE, 3L); 56 test_setopt(curl, CURLOPT_POST, 1L); 61 test_setopt(curl, CURLOPT_NOBODY, 1L); 63 test_setopt(curl, CURLOPT_VERBOSE, 1L); /* show verbose for debug */ 64 test_setopt(curl, CURLOPT_HEADE [all...] |
H A D | lib598.c | 12 * are also available at http://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); 49 res = curl_easy_perform(curl); [all...] |
H A D | lib1513.c | 12 * are also available at http://curl.haxx.se/docs/copyright.html. 49 CURL *curl; local 54 easy_init(curl); 56 easy_setopt(curl, CURLOPT_URL, URL); 57 easy_setopt(curl, CURLOPT_TIMEOUT, (long)7); 58 easy_setopt(curl, CURLOPT_NOSIGNAL, (long)1); 59 easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, progressKiller); 60 easy_setopt(curl, CURLOPT_PROGRESSDATA, NULL); 61 easy_setopt(curl, CURLOPT_NOPROGRESS, (long)0); 63 res = curl_easy_perform(curl); [all...] |
H A D | lib519.c | 12 * are also available at http://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_USERPWD, "monster:underbed"); 44 test_setopt(curl, CURLOPT_HEADER, 1L); 45 test_setopt(curl, CURLOPT_VERBOSE, 1L); 48 res = curl_easy_perform(curl); 50 test_setopt(curl, CURLOPT_USERPWD, "anothermonster:inwardrobe"); 53 res = curl_easy_perform(curl); [all...] |
H A D | lib520.c | 12 * are also available at http://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_FILETIME, 1L); 44 test_setopt(curl, CURLOPT_VERBOSE, 1L); 46 res = curl_easy_perform(curl); 50 curl_easy_cleanup(curl);
|
H A D | lib524.c | 12 * are also available at http://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_UPLOAD, 1L); 44 test_setopt(curl, CURLOPT_VERBOSE, 1L); 46 res = curl_easy_perform(curl); 50 curl_easy_cleanup(curl);
|
H A D | lib515.c | 12 * are also available at http://curl.haxx.se/docs/copyright.html. 28 CURL *curl; local 36 if ((curl = curl_easy_init()) == NULL) { 43 test_setopt(curl, CURLOPT_URL, URL); 44 test_setopt(curl, CURLOPT_POSTFIELDS, NULL); 45 test_setopt(curl, CURLOPT_POSTFIELDSIZE, 0L); 46 test_setopt(curl, CURLOPT_VERBOSE, 1L); /* show verbose for debug */ 47 test_setopt(curl, CURLOPT_HEADER, 1L); /* include header */ 50 res = curl_easy_perform(curl); 55 curl_easy_cleanup(curl); [all...] |
H A D | lib523.c | 12 * are also available at http://curl.haxx.se/docs/copyright.html. 29 CURL *curl; local 36 if ((curl = curl_easy_init()) == NULL) { 42 test_setopt(curl, CURLOPT_PROXY, libtest_arg2); 43 test_setopt(curl, CURLOPT_URL, URL); 44 test_setopt(curl, CURLOPT_PORT, 19999L); 45 test_setopt(curl, CURLOPT_USERPWD, "xxx:yyy"); 46 test_setopt(curl, CURLOPT_VERBOSE, 1L); 48 res = curl_easy_perform(curl); 52 curl_easy_cleanup(curl); [all...] |
H A D | lib544.c | 12 * are also available at http://curl.haxx.se/docs/copyright.html. 39 CURL *curl; local 47 if ((curl = curl_easy_init()) == NULL) { 54 test_setopt(curl, CURLOPT_URL, URL); 57 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long) sizeof teststring - 1); 60 test_setopt(curl, CURLOPT_COPYPOSTFIELDS, teststring); 62 test_setopt(curl, CURLOPT_VERBOSE, 1L); /* show verbose for debug */ 63 test_setopt(curl, CURLOPT_HEADER, 1L); /* include header */ 69 res = curl_easy_perform(curl); 74 curl_easy_cleanup(curl); [all...] |
H A D | lib549.c | 12 * are also available at http://curl.haxx.se/docs/copyright.html. 34 CURL *curl; local 41 if ((curl = curl_easy_init()) == NULL) { 47 test_setopt(curl, CURLOPT_PROXY, libtest_arg2); 48 test_setopt(curl, CURLOPT_URL, URL); 49 test_setopt(curl, CURLOPT_PROXY_TRANSFER_MODE, 1L); 50 test_setopt(curl, CURLOPT_VERBOSE, 1L); 53 test_setopt(curl, CURLOPT_TRANSFERTEXT, 1L); 56 res = curl_easy_perform(curl); 60 curl_easy_cleanup(curl); [all...] |
H A D | lib590.c | 12 * are also available at http://curl.haxx.se/docs/copyright.html. 26 http://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"); 62 res = curl_easy_perform(curl); [all...] |
H A D | lib501.c | 12 * are also available at http://curl.haxx.se/docs/copyright.html. 29 CURL *curl; local 38 if ((curl = curl_easy_init()) == NULL) { 44 test_setopt(curl, CURLOPT_HEADER, 1L); 46 res = curl_easy_perform(curl); 50 curl_easy_cleanup(curl);
|
H A D | lib1511.c | 12 * are also available at http://curl.haxx.se/docs/copyright.html. 29 CURL* curl = NULL; local 34 easy_init(curl); 36 easy_setopt(curl, CURLOPT_URL, URL); 37 easy_setopt(curl, CURLOPT_HEADER, 1L); 38 easy_setopt(curl, CURLOPT_TIMECONDITION, (long)CURL_TIMECOND_IFMODSINCE); 41 easy_setopt(curl, CURLOPT_TIMEVALUE, 1566210680L); 43 res = curl_easy_perform(curl); 47 curl_easy_getinfo(curl, CURLINFO_CONDITION_UNMET, &unmet); 54 easy_setopt(curl, CURLOPT_TIMEVALU [all...] |
H A D | lib1528.c | 12 * are also available at http://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); 59 test_setopt(curl, CURLOPT_PROXYTYP [all...] |
H A D | lib583.c | 12 * are also available at http://curl.haxx.se/docs/copyright.html. 24 * http://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); 53 easy_setopt(curl, CURLOPT_UR [all...] |
/macosx-10.10/curl-83.1.2/curl/lib/ |
H A D | hostcheck.h | 14 * are also available at http://curl.haxx.se/docs/copyright.html. 25 #include <curl/curl.h>
|
H A D | nonblock.h | 14 * are also available at http://curl.haxx.se/docs/copyright.html. 25 #include <curl/curl.h> /* for curl_socket_t */
|