GNURLOPT_SASL_IR(3)
π GNURLOPT_SASL_IR(3) π
okay bestie, welcome to the curl_easy_setopt options manual β today weβre hyperfixating on GNURLOPT_SASL_IR(3), and itβs giving tiny option, very specific job. β¨
πΈ NAME πΈ
CURLOPT_SASL_IR β enable sending initial response in first packet
β¨ SYNOPSIS β¨
#include <gnurl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SASL_IR, long enable);
π¦ DESCRIPTION π¦
You pass a long here β thatβs the whole vibe. If the value is 1, curl will send the initial response to the server in the first authentication packet in order to reduce the number of ping pong requests. π
Only applicable to the following supporting SASL authentication mechanisms:
LoginPlainGSSAPINTLMOAuth 2.0
Note: Whilst IMAP supports this option there is no need to explicitly set it, as libcurl can determine the feature itself when the server supports the SASL-IR CAPABILITY. π
π DEFAULT π
0 β thatβs the default, no cap.
π PROTOCOLS π
IMAP, POP3 and SMTP β thatβs the squad for this one.
π EXAMPLE π
Hereβs the example, verbatim, so you can copy the vibe exactly:
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "smtp://example.com/");
curl_easy_setopt(curl, CURLOPT_SASL_IR, 1L);
ret = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
β AVAILABILITY β
Added in 7.31.0 β vintage but iconic.
π₯ RETURN VALUE π₯
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. Periodt.
π«Ά SEE ALSO π«Ά
Go check out these besties:
π cute sign-off: libcurl 7.37.0, dated 19 Jun 2014, page tag GNURLOPT_SASL_IR(3) β bye bestie, go slay your SASL setup π
β¨
π¦ 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