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:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Sets login options string to use for the transfer.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 5.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
curl | The CURL session handle. | $curl | |
Value | The options string. | "" | |
Encoding | The text encoding for text parameter. Default is UTF-8. Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ. |
"utf8" | Optional |
Returns OK or error.
See also LOGIN_OPTIONS option in CURL manual.
Use plain authentication:
Set Variable [$r; Value: MBS("CURL.SetOptionLoginOptions"; $curl; "AUTH=PLAIN")]
Use CRAM MD5 authentication:
Set Variable [$r; Value: MBS("CURL.SetOptionLoginOptions"; $curl; "AUTH=CRAM-MD5")]
Use LOGIN with username and password:
Set Variable [$r; Value: MBS("CURL.SetOptionLoginOptions"; $curl; "AUTH=LOGIN") ]
Use NTLM authentication:
Set Variable [$r; Value: MBS("CURL.SetOptionLoginOptions"; $curl; "AUTH=NTLM")]
Created 22nd November 2015, last changed 18th April 2021