CURLOPT_LOGIN_OPTIONS - Online Linux Manual Page
Section : 3
Updated : January 10, 2022
Source : libcurl 7.82.0
Note : curl_easy_setopt options
NAMECURLOPT_LOGIN_OPTIONS − login options
SYNOPSIS#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_LOGIN_OPTIONS, char *options);
DESCRIPTIONPass a char * as parameter, which should be pointing to the null-terminated options string to use for the transfer. For more information about the login options please see RFC2384, RFC5092 and IETF draft draft-earhart-url-smtp-00.txt CURLOPT_LOGIN_OPTIONS(3) 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 CURLOPT_USERNAME(3) option. The application does not have to keep the string around after setting this option.
DEFAULTNULL
PROTOCOLSOnly IMAP, LDAP, POP3 and SMTP support login options.
EXAMPLECURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "smtp://example.com/");
curl_easy_setopt(curl, CURLOPT_LOGIN_OPTIONS, "AUTH=*");
ret = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
AVAILABILITYAdded in 7.34.0. Support for OpenLDAP added in 7.82.0.
RETURN VALUEReturns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space.
SEE ALSOCURLOPT_USERNAME(3), CURLOPT_PASSWORD (3)," 0
Johanes Gumabo
Data Size : 5,507 byte
man-CURLOPT_LOGIN_OPTIONS.3Build : 2025-03-22, 13:26 :
Visitor Screen : x
Visitor Counter ( page / site ) : 67 / 4,679,274
Visitor ID : :
Visitor IP : 216.73.216.132 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 20 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 25.03.22
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.