Searched refs:curl (Results 26 - 50 of 359) sorted by relevance

1234567891011>>

/macosx-10.10/curl-83.1.2/curl/docs/examples/
H A Dpersistant.c12 * 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 Dpop3-dele.c12 * 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 Dpop3-noop.c12 * 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 Dpop3-stat.c12 * 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 Dhttpcustomheader.c12 * 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 Dsmtp-expn.c12 * 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 Dfileupload.c12 * 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 Dprogressfunc.c12 * 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 Dlib514.c12 * 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 Dlib598.c12 * 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 Dlib1513.c12 * 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 Dlib519.c12 * 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 Dlib520.c12 * 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 Dlib524.c12 * 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 Dlib515.c12 * 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 Dlib523.c12 * 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 Dlib544.c12 * 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 Dlib549.c12 * 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 Dlib590.c12 * 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 Dlib501.c12 * 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 Dlib1511.c12 * 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 Dlib1528.c12 * 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 Dlib583.c12 * 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 Dhostcheck.h14 * are also available at http://curl.haxx.se/docs/copyright.html.
25 #include <curl/curl.h>
H A Dnonblock.h14 * are also available at http://curl.haxx.se/docs/copyright.html.
25 #include <curl/curl.h> /* for curl_socket_t */

Completed in 261 milliseconds

1234567891011>>