mirror of
https://github.com/curl/curl.git
synced 2026-06-07 17:44:14 +03:00
drop cast for CURLAUTH_ANY 2 examples
This commit is contained in:
parent
707146bc07
commit
b7c2eb8bf6
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ int main(int argc, char **argv)
|
|||
/* tell libcurl we can use "any" auth, which lets the lib pick one, but it
|
||||
also costs one extra round-trip and possibly sending of all the PUT
|
||||
data twice!!! */
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPAUTH, (long)CURLAUTH_ANY);
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
|
||||
|
||||
/* set user name and password for the authentication */
|
||||
curl_easy_setopt(curl, CURLOPT_USERPWD, "user:password");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue