Searched refs:curl_easy_setopt (Results 1 - 25 of 155) sorted by relevance

1234567

/external/curl/docs/examples/
H A Dimap-ssl.c40 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_VERIFYPEER, 0L);
64 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
70 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
H A Dimap-tls.c40 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_SSL, (long)CURLUSESSL_ALL);
56 * curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
57 * curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
64 curl_easy_setopt(curl, CURLOPT_CAINFO, "/path/to/certificate.pem");
69 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
H A Dpop3-ssl.c40 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_VERIFYPEER, 0L);
64 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
70 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
H A Dpop3-tls.c40 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_SSL, (long)CURLUSESSL_ALL);
56 * curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
57 * curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
64 curl_easy_setopt(curl, CURLOPT_CAINFO, "/path/to/certificate.pem");
69 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
H A Dimap-copy.c39 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_CUSTOMREQUEST, "COPY 1 FOLDER");
H A Dimap-create.c39 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_CUSTOMREQUEST, "CREATE FOLDER");
H A Dimap-delete.c39 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_CUSTOMREQUEST, "DELETE FOLDER");
H A Dimap-examine.c39 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_CUSTOMREQUEST, "EXAMINE OUTBOX");
H A Dimap-lsub.c39 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_CUSTOMREQUEST, "LSUB \"\" *");
H A Dimap-noop.c39 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_CUSTOMREQUEST, "NOOP");
H A Dimap-search.c39 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_CUSTOMREQUEST, "SEARCH NEW");
H A Dpop3-top.c39 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_CUSTOMREQUEST, "TOP 1 0");
H A Dpop3-uidl.c39 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_CUSTOMREQUEST, "UIDL");
H A Dimap-store.c39 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_CUSTOMREQUEST, "STORE 1 +Flags \\Deleted");
60 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "EXPUNGE");
H A Dpop3-dele.c39 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_CUSTOMREQUEST, "DELE");
49 curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);
H A Dpop3-noop.c39 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_CUSTOMREQUEST, "NOOP");
49 curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);
H A Dpop3-stat.c39 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_CUSTOMREQUEST, "STAT");
49 curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);
H A Dsimplessl.c77 curl_easy_setopt(curl, CURLOPT_URL, "HTTPS://your.favourite.ssl.site");
78 curl_easy_setopt(curl, CURLOPT_HEADERDATA, headerfile);
84 if (curl_easy_setopt(curl, CURLOPT_SSLENGINE,pEngine) != CURLE_OK)
89 if (curl_easy_setopt(curl, CURLOPT_SSLENGINE_DEFAULT,1L) != CURLE_OK)
99 curl_easy_setopt(curl,CURLOPT_SSLCERTTYPE,"PEM");
102 curl_easy_setopt(curl,CURLOPT_SSLCERT,pCertFile);
107 curl_easy_setopt(curl,CURLOPT_KEYPASSWD,pPassphrase);
111 curl_easy_setopt(curl,CURLOPT_SSLKEYTYPE,pKeyType);
114 curl_easy_setopt(curl,CURLOPT_SSLKEY,pKeyName);
117 curl_easy_setopt(cur
[all...]
H A Dsmtp-tls.c91 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
92 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
98 curl_easy_setopt(curl, CURLOPT_URL, "smtp://mainserver.example.net:587");
105 curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL);
110 * curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
111 * curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
118 curl_easy_setopt(curl, CURLOPT_CAINFO, "/path/to/certificate.pem");
126 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM);
133 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients);
138 curl_easy_setopt(cur
[all...]
H A Dftpuploadresume.c97 curl_easy_setopt(curlhandle, CURLOPT_UPLOAD, 1L);
99 curl_easy_setopt(curlhandle, CURLOPT_URL, remotepath);
102 curl_easy_setopt(curlhandle, CURLOPT_FTP_RESPONSE_TIMEOUT, timeout);
104 curl_easy_setopt(curlhandle, CURLOPT_HEADERFUNCTION, getcontentlengthfunc);
105 curl_easy_setopt(curlhandle, CURLOPT_HEADERDATA, &uploaded_len);
107 curl_easy_setopt(curlhandle, CURLOPT_WRITEFUNCTION, discardfunc);
109 curl_easy_setopt(curlhandle, CURLOPT_READFUNCTION, readfunc);
110 curl_easy_setopt(curlhandle, CURLOPT_READDATA, f);
112 curl_easy_setopt(curlhandle, CURLOPT_FTPPORT, "-"); /* disable passive mode */
113 curl_easy_setopt(curlhandl
[all...]
H A Dcacertinmem.c121 rv=curl_easy_setopt(ch,CURLOPT_VERBOSE, 0L);
122 rv=curl_easy_setopt(ch,CURLOPT_HEADER, 0L);
123 rv=curl_easy_setopt(ch,CURLOPT_NOPROGRESS, 1L);
124 rv=curl_easy_setopt(ch,CURLOPT_NOSIGNAL, 1L);
125 rv=curl_easy_setopt(ch,CURLOPT_WRITEFUNCTION, *writefunction);
126 rv=curl_easy_setopt(ch,CURLOPT_WRITEDATA, stdout);
127 rv=curl_easy_setopt(ch,CURLOPT_HEADERFUNCTION, *writefunction);
128 rv=curl_easy_setopt(ch,CURLOPT_HEADERDATA, stderr);
129 rv=curl_easy_setopt(ch,CURLOPT_SSLCERTTYPE,"PEM");
130 rv=curl_easy_setopt(c
[all...]
H A Dhttps.c34 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);
H A Dimap-fetch.c39 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");
H A Dimap-list.c39 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");
H A Dpop3-list.c39 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");

Completed in 155 milliseconds

1234567