/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/docs/examples/ |
H A D | imap-ssl.c | 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_VERIFYPEER, 0L); 64 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); 70 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
H A D | imap-tls.c | 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_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 D | pop3-ssl.c | 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_VERIFYPEER, 0L); 64 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); 70 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
H A D | pop3-tls.c | 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_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 D | imap-copy.c | 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_CUSTOMREQUEST, "COPY 1 FOLDER");
|
H A D | imap-create.c | 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_CUSTOMREQUEST, "CREATE FOLDER");
|
H A D | imap-delete.c | 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_CUSTOMREQUEST, "DELETE FOLDER");
|
H A D | imap-examine.c | 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_CUSTOMREQUEST, "EXAMINE OUTBOX");
|
H A D | imap-lsub.c | 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_CUSTOMREQUEST, "LSUB \"\" *");
|
H A D | imap-noop.c | 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_CUSTOMREQUEST, "NOOP");
|
H A D | imap-search.c | 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_CUSTOMREQUEST, "SEARCH NEW");
|
H A D | pop3-top.c | 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_CUSTOMREQUEST, "TOP 1 0");
|
H A D | pop3-uidl.c | 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_CUSTOMREQUEST, "UIDL");
|
H A D | imap-store.c | 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_CUSTOMREQUEST, "STORE 1 +Flags \\Deleted"); 60 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "EXPUNGE");
|
H A D | pop3-dele.c | 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_CUSTOMREQUEST, "DELE"); 49 curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);
|
H A D | pop3-noop.c | 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_CUSTOMREQUEST, "NOOP"); 49 curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);
|
H A D | pop3-stat.c | 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_CUSTOMREQUEST, "STAT"); 49 curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);
|
H A D | simplessl.c | 77 curl_easy_setopt(curl, CURLOPT_URL, "HTTPS://your.favourite.ssl.site"); 78 curl_easy_setopt(curl, CURLOPT_WRITEHEADER, 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 D | smtp-tls.c | 91 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 D | ftpuploadresume.c | 97 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 D | cacertinmem.c | 117 rv=curl_easy_setopt(ch,CURLOPT_VERBOSE, 0L); 118 rv=curl_easy_setopt(ch,CURLOPT_HEADER, 0L); 119 rv=curl_easy_setopt(ch,CURLOPT_NOPROGRESS, 1L); 120 rv=curl_easy_setopt(ch,CURLOPT_NOSIGNAL, 1L); 121 rv=curl_easy_setopt(ch,CURLOPT_WRITEFUNCTION, *writefunction); 122 rv=curl_easy_setopt(ch,CURLOPT_WRITEDATA, stdout); 123 rv=curl_easy_setopt(ch,CURLOPT_HEADERFUNCTION, *writefunction); 124 rv=curl_easy_setopt(ch,CURLOPT_WRITEHEADER, stderr); 125 rv=curl_easy_setopt(ch,CURLOPT_SSLCERTTYPE,"PEM"); 126 rv=curl_easy_setopt(c [all...] |
H A D | https.c | 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);
|
H A D | imap-fetch.c | 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");
|
H A D | imap-list.c | 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");
|
H A D | pop3-list.c | 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");
|