Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Sets whether to use SSL for next transfers.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 2.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
(old name: CURL.SetOptionFTPSSL)
Parameter | Description | Example |
---|---|---|
curl | The CURL session handle. | $curl |
Value | The new SSL setting. | 3 |
Returns "OK" on success.
None | 0 | Don't attempt to use SSL. |
Try | 1 | Try using SSL, proceed as normal otherwise. |
Control | 2 | Require SSL for the control connection or fail with CURLE_USE_SSL_FAILED. |
All | 3 | Require SSL for all communication or fail with CURLE_USE_SSL_FAILED. |
See also USE_SSL option in CURL manual.
Set to use SSL:
$r = MBS( "CURL.SetOptionUseSSL"; $curl; 3 )
Set to use TLSv1.2:
Set Variable [$r; MBS( "CURL.SetOptionUseSSL"; $curl; 3 ) ]
Set Variable [$r; MBS( "CURL.SetOptionSSLVersion"; $curl; 6 ) ]
Set URL for Gmail imap server:
Set Variable [$r; Value:MBS("CURL.SetOptionURL"; $curl; "imaps://imap.gmail.com/INBOX")]
Set Variable [$r; Value:MBS("CURL.SetOptionUseSSL"; $curl; 3)]
Created 18th August 2014, last changed 5th February 2017
CURL.SetOptionUploadBufferSize - CURL.SetOptionUserAgent
Feedback: Report problem or ask question.