CURLOPT_HTTPAUTH.md add note to history

This commit is contained in:
Viktor Szakats 2025-08-01 13:46:51 +02:00
parent c9134a3bc6
commit 318bfd846e
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -137,7 +137,7 @@ int main(void)
CURLcode ret;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
/* allow whatever auth the server speaks */
curl_easy_setopt(curl, CURLOPT_HTTPAUTH, (long)CURLAUTH_ANY);
curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
curl_easy_setopt(curl, CURLOPT_USERPWD, "james:bond");
ret = curl_easy_perform(curl);
}
@ -152,6 +152,9 @@ CURLAUTH_ONLY was added in 7.21.3
CURLAUTH_NTLM_WB was added in 7.22.0
CURLAUTH_\* macros became `long` types in 7.26.0, prior to this version
a `long` cast is necessary when passing to curl_easy_setopt(3).
CURLAUTH_BEARER was added in 7.61.0
CURLAUTH_AWS_SIGV4 was added in 7.74.0