Searched refs:curl (Results 1 - 25 of 351) sorted by relevance

1234567891011>>

/macosx-10.10.1/curl-83.1.2/curl/docs/examples/
H A Dsimple.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) {
32 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
34 curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
37 res = curl_easy_perform(curl);
44 curl_easy_cleanup(curl);
[all...]
H A Dimap-copy.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, "imap://imap.example.com/INBOX");
46 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES
[all...]
H A Dimap-create.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, "imap://imap.example.com");
46 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES
[all...]
H A Dimap-delete.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, "imap://imap.example.com");
46 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES
[all...]
H A Dimap-examine.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, "imap://imap.example.com");
46 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES
[all...]
H A Dimap-lsub.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, "imap://imap.example.com");
47 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES
[all...]
H A Dimap-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, "imap://imap.example.com");
46 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES
[all...]
H A Dimap-search.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, "imap://imap.example.com/INBOX");
50 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES
[all...]
H A Dpop3-top.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-uidl.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 Dhttps.c12 * are also available at http://curl.haxx.se/docs/copyright.html.
23 #include <curl/curl.h>
27 CURL *curl; local
32 curl = curl_easy_init();
33 if(curl) {
34 curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
47 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
57 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
61 res = curl_easy_perform(curl);
[all...]
H A Dimap-fetch.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, "imap://imap.example.com/INBOX/;UID=1");
46 res = curl_easy_perform(curl);
[all...]
H A Dimap-list.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");
45 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com");
48 res = curl_easy_perform(curl);
[all...]
H A Dpop3-list.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 res = curl_easy_perform(curl);
[all...]
H A Dpop3-retr.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 res = curl_easy_perform(curl);
[all...]
H A Dsimplepost.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_URL, "http://example.com");
36 curl_easy_setopt(curl, CURLOPT_POSTFIELDS, postthis);
40 curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)strlen(postthis));
43 res = curl_easy_perform(curl);
[all...]
H A Dimap-ssl.c12 * are also available at http://curl.haxx.se/docs/copyright.html.
23 #include <curl/curl.h>
34 CURL *curl; local
37 curl = curl_easy_init();
38 if(curl) {
40 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
41 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
45 curl_easy_setopt(curl, CURLOPT_URL, "imaps://imap.example.com/INBOX/;UID=1");
56 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEE
[all...]
H A Dimap-store.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, "imap://imap.example.com/INBOX");
48 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES
[all...]
H A Dimap-tls.c12 * are also available at http://curl.haxx.se/docs/copyright.html.
23 #include <curl/curl.h>
34 CURL *curl; local
37 curl = curl_easy_init();
38 if(curl) {
40 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
41 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
44 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/INBOX/;UID=1");
51 curl_easy_setopt(curl, CURLOPT_USE_SS
[all...]
H A Dpop3-ssl.c12 * are also available at http://curl.haxx.se/docs/copyright.html.
23 #include <curl/curl.h>
34 CURL *curl; local
37 curl = curl_easy_init();
38 if(curl) {
40 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
41 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
45 curl_easy_setopt(curl, CURLOPT_URL, "pop3s://pop.example.com/1");
56 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEE
[all...]
H A Dpop3-tls.c12 * are also available at http://curl.haxx.se/docs/copyright.html.
23 #include <curl/curl.h>
34 CURL *curl; local
37 curl = curl_easy_init();
38 if(curl) {
40 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
41 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
44 curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1");
51 curl_easy_setopt(curl, CURLOPT_USE_SS
[all...]
H A Dgetinfo.c12 * are also available at http://curl.haxx.se/docs/copyright.html.
23 #include <curl/curl.h>
27 CURL *curl; local
30 /* http://curl.haxx.se/libcurl/c/curl_easy_init.html */
31 curl = curl_easy_init();
32 if(curl) {
33 /* http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTURL */
34 curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/");
35 /* http://curl
[all...]
H A Dhttp-post.c12 * are also available at http://curl.haxx.se/docs/copyright.html.
23 #include <curl/curl.h>
27 CURL *curl; local
33 /* get a curl handle */
34 curl = curl_easy_init();
35 if(curl) {
39 curl_easy_setopt(curl, CURLOPT_URL, "http://postit.example.com/moo.cgi");
41 curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "name=daniel&project=curl");
[all...]
H A Dresolve.c12 * are also available at http://curl.haxx.se/docs/copyright.html.
23 #include <curl/curl.h>
27 CURL *curl; local
38 curl = curl_easy_init();
39 if(curl) {
40 curl_easy_setopt(curl, CURLOPT_RESOLVE, host);
41 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
42 res = curl_easy_perform(curl);
45 curl_easy_cleanup(curl);
[all...]
H A Dsmtp-vrfy.c12 * are also available at http://curl.haxx.se/docs/copyright.html.
24 #include <curl/curl.h>
39 CURL *curl; local
43 curl = curl_easy_init();
44 if(curl) {
46 curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.com");
50 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients);
53 res = curl_easy_perform(curl);
69 curl_easy_cleanup(curl);
[all...]

Completed in 236 milliseconds

1234567891011>>