mirror of
https://github.com/curl/curl.git
synced 2026-07-28 05:53:11 +03:00
parent
7a14898264
commit
bdb7d8b004
43 changed files with 70 additions and 67 deletions
|
|
@ -49,7 +49,7 @@ int main(void)
|
|||
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||
|
||||
/* This fetches message 1 from the user's inbox. Note the use of
|
||||
* imaps:// rather than imap:// to request a SSL based connection. */
|
||||
* imaps:// rather than imap:// to request an SSL based connection. */
|
||||
curl_easy_setopt(curl, CURLOPT_URL,
|
||||
"imaps://imap.example.com/INBOX/;UID=1");
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
/*
|
||||
List of URLs to fetch.
|
||||
|
||||
If you intend to use a SSL-based protocol here you might need to setup TLS
|
||||
If you intend to use an SSL-based protocol here you might need to setup TLS
|
||||
library mutex callbacks as described here:
|
||||
|
||||
https://curl.se/libcurl/c/threadsafe.html
|
||||
|
|
|
|||
|
|
@ -48,8 +48,8 @@ int main(void)
|
|||
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||
|
||||
/* This retrieves message 1 from the user's mailbox. Note the use of
|
||||
* pop3s:// rather than pop3:// to request a SSL based connection. */
|
||||
/* This retrieves message 1 from the user's mailbox. Note the use of *
|
||||
pop3s:// rather than pop3:// to request an SSL based connection. */
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "pop3s://pop.example.com/1");
|
||||
|
||||
/* If you want to connect to a site who is not using a certificate that is
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ int main(void)
|
|||
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||
|
||||
/* This is the URL for your mailserver. Note the use of smtps:// rather
|
||||
* than smtp:// to request a SSL based connection. */
|
||||
* than smtp:// to request an SSL based connection. */
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "smtps://mainserver.example.net");
|
||||
|
||||
/* If you want to connect to a site who is not using a certificate that is
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue