mirror of
https://github.com/curl/curl.git
synced 2026-06-08 19:14:17 +03:00
CURLOPT_HTTPAUTH.md add note to history
This commit is contained in:
parent
c9134a3bc6
commit
318bfd846e
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue