Name
easy:SetOpt_Use_SSL -- request using SSL / TLS for the transfer
Synopsis
easy:SetOpt_Use_SSL(level)
Function
Pass a value using one of the values from below, to make libcurl use your desired level of SSL for the transfer.

These are all protocols that start out plain text and get "upgraded" to SSL using the STARTTLS command.

This is for enabling SSL/TLS when you use FTP, SMTP, POP3, IMAP etc.

#CURLUSESSL_NONE
Don't attempt to use SSL.
#CURLUSESSL_TRY
Try using SSL, proceed as normal otherwise.
#CURLUSESSL_CONTROL
Require SSL for the control connection or fail with #CURLE_USE_SSL_FAILED.
#CURLUSESSL_ALL
Require SSL for all communication or fail with #CURLE_USE_SSL_FAILED.

Inputs
level
input value

Show TOC