GNURLOPT_LOGIN_OPTIONS(3)
π GNURLOPT_LOGIN_OPTIONS(3) π
okay bestie, welcome to the curl_easy_setopt options manual! This page is CURLOPT_LOGIN_OPTIONS β set login options β and it's lowkey iconic for telling your transfer how to log in. π«Ά
β¨ NAME β¨
CURLOPT_LOGIN_OPTIONS β set login options π
β¨ SYNOPSIS β¨
#include <gnurl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_LOGIN_OPTIONS, char
*options);
β¨ DESCRIPTION β¨
Pass a char * as parameter, and it should be pointing at the null-terminated options string to use for the transfer. No cap.
For more info about the login options, pls go see RFC2384, RFC5092, and IETF draft draft-earhart-url-smtp-00.txt. iykyk π
CURLOPT_LOGIN_OPTIONS(3) can be used to set protocol specific login options, like the preferred authentication mechanism via "AUTH=NTLM" or "AUTH=*", and it 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. Slay, no memory babysitting required. β¨
π DEFAULT π
NULL
π¦ PROTOCOLS π¦
Only IMAP, POP3 and SMTP support login options. periodt.
π₯ EXAMPLE π₯
Here's the example, verbatim bestie:
CURL *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);
}
π AVAILABILITY π
Added in 7.34.0 π
β RETURN VALUE β
Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space. π
π SEE ALSO π
mwah π this page is from libcurl 7.37.0, dated 19 Jun 2014, and it's the GNURLOPT_LOGIN_OPTIONS(3) page. bye bestie, go set those login options π«Άβ¨
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms