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

1234567891011>>

/external/curl/docs/examples/
H A Dsimple.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
27 #include <curl/curl.h>
31 CURL *curl; local
34 curl = curl_easy_init();
35 if(curl) {
36 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
38 curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
41 res = curl_easy_perform(curl);
48 curl_easy_cleanup(curl);
[all...]
H A Dimap-copy.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
39 CURL *curl; local
42 curl = curl_easy_init();
43 if(curl) {
45 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
46 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
49 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/INBOX");
52 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES
[all...]
H A Dimap-create.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
39 CURL *curl; local
42 curl = curl_easy_init();
43 if(curl) {
45 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
46 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
49 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com");
52 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES
[all...]
H A Dimap-delete.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
39 CURL *curl; local
42 curl = curl_easy_init();
43 if(curl) {
45 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
46 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
49 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com");
52 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES
[all...]
H A Dimap-examine.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
39 CURL *curl; local
42 curl = curl_easy_init();
43 if(curl) {
45 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
46 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
49 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com");
52 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES
[all...]
H A Dimap-lsub.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
39 CURL *curl; local
42 curl = curl_easy_init();
43 if(curl) {
45 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
46 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
49 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com");
53 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES
[all...]
H A Dimap-noop.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
39 CURL *curl; local
42 curl = curl_easy_init();
43 if(curl) {
45 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
46 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
49 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com");
52 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES
[all...]
H A Dimap-search.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
39 CURL *curl; local
42 curl = curl_easy_init();
43 if(curl) {
45 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
46 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
49 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/INBOX");
56 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES
[all...]
H A Dpop3-top.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
39 CURL *curl; local
42 curl = curl_easy_init();
43 if(curl) {
45 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
46 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
49 curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com");
52 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES
[all...]
H A Dpop3-uidl.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
39 CURL *curl; local
42 curl = curl_easy_init();
43 if(curl) {
45 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
46 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
49 curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com");
52 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES
[all...]
H A Dhttps.c12 * 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, "https://example.com/");
51 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
61 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
65 res = curl_easy_perform(curl);
[all...]
H A Dimap-fetch.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
39 CURL *curl; local
42 curl = curl_easy_init();
43 if(curl) {
45 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
46 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
49 curl_easy_setopt(curl, CURLOPT_URL,
53 res = curl_easy_perform(curl);
[all...]
H A Dimap-list.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
39 CURL *curl; local
42 curl = curl_easy_init();
43 if(curl) {
45 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
46 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
51 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com");
54 res = curl_easy_perform(curl);
[all...]
H A Dpop3-list.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
39 CURL *curl; local
42 curl = curl_easy_init();
43 if(curl) {
45 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
46 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
49 curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com");
52 res = curl_easy_perform(curl);
[all...]
H A Dpop3-retr.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
39 CURL *curl; local
42 curl = curl_easy_init();
43 if(curl) {
45 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
46 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
49 curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1");
52 res = curl_easy_perform(curl);
[all...]
H A Dsimplepost.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
28 #include <curl/curl.h>
32 CURL *curl; local
37 curl = curl_easy_init();
38 if(curl) {
39 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
40 curl_easy_setopt(curl, CURLOPT_POSTFIELDS, postthis);
44 curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)strlen(postthis));
47 res = curl_easy_perform(curl);
[all...]
H A Dimap-ssl.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
40 CURL *curl; local
43 curl = curl_easy_init();
44 if(curl) {
46 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
47 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
51 curl_easy_setopt(curl, CURLOPT_URL,
63 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEE
[all...]
H A Dimap-store.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
39 CURL *curl; local
42 curl = curl_easy_init();
43 if(curl) {
45 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
46 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
49 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/INBOX");
54 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUES
[all...]
H A Dimap-tls.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
40 CURL *curl; local
43 curl = curl_easy_init();
44 if(curl) {
46 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
47 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
50 curl_easy_setopt(curl, CURLOPT_URL,
58 curl_easy_setopt(curl, CURLOPT_USE_SS
[all...]
H A Dpop3-ssl.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
40 CURL *curl; local
43 curl = curl_easy_init();
44 if(curl) {
46 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
47 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
51 curl_easy_setopt(curl, CURLOPT_URL, "pop3s://pop.example.com/1");
62 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEE
[all...]
H A Dpop3-tls.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
40 CURL *curl; local
43 curl = curl_easy_init();
44 if(curl) {
46 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
47 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
50 curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1");
57 curl_easy_setopt(curl, CURLOPT_USE_SS
[all...]
H A Dgetinfo.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
27 #include <curl/curl.h>
31 CURL *curl; local
34 curl = curl_easy_init();
35 if(curl) {
36 curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/");
37 res = curl_easy_perform(curl);
42 res = curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE, &ct);
49 curl_easy_cleanup(curl);
[all...]
H A Dhttp-post.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
27 #include <curl/curl.h>
31 CURL *curl; local
37 /* get a curl handle */
38 curl = curl_easy_init();
39 if(curl) {
43 curl_easy_setopt(curl, CURLOPT_URL, "http://postit.example.com/moo.cgi");
45 curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "name=daniel&project=curl");
[all...]
H A Dresolve.c12 * are also available at https://curl.haxx.se/docs/copyright.html.
28 #include <curl/curl.h>
32 CURL *curl; local
43 curl = curl_easy_init();
44 if(curl) {
45 curl_easy_setopt(curl, CURLOPT_RESOLVE, host);
46 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
47 res = curl_easy_perform(curl);
50 curl_easy_cleanup(curl);
[all...]
/external/curl/.github/
H A DISSUE_TEMPLATE5 ### curl/libcurl version
7 [curl -V output perhaps?]

Completed in 252 milliseconds

1234567891011>>