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.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
CURL.SetOptionLoginOptions
Sets login options string to use for the transfer.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| CURL | 5.4 | Yes | Yes | Yes | Yes | Yes |
Parameters
| 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 |
Result
Returns OK or error.
Description
Sets login options string to use for the transfer.For more information about the login options please see RFC 2384, RFC5092 and IETF draft draft-earhart-url-smtp-00.txt
OptionLoginOptions can be used to set protocol specific login options, such as the preferred authentication mechanism via "AUTH=NTLM" or "AUTH=*", and should be used in conjunction with the CURL.SetOptionUserName option.
Only IMAP, POP3 and SMTP support login options.
See also LOGIN_OPTIONS option in CURL manual.
Examples
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:
MBS("CURL.SetOptionLoginOptions"; $curl; "AUTH=LOGIN")
Use NTLM authentication:
Set Variable [$r; Value:MBS("CURL.SetOptionLoginOptions"; $curl; "AUTH=NTLM")]
See also
- CURL.GetOptionTelnetOptions
- CURL.SetOptionHeaderOptions
- CURL.SetOptionProxySSLOptions
- CURL.SetOptionSSLOptions
- CURL.SetOptionTelnetOptions
- CURL.SetOptionTFTPNoOptions
- CURL.SetOptionUserName
Blog Entries
Created 22nd November 2015, last changed 8th December 2020
CURL.SetOptionLocalPortRange - CURL.SetOptionLowSpeedLimit
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins