mirror of
https://github.com/curl/curl.git
synced 2026-06-08 09:04:17 +03:00
CURLOPT_SOCKS5_AUTH.md drop cast, add note to history
This commit is contained in:
parent
398ef65d23
commit
fe3a2f86bf
1 changed files with 6 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ int main(void)
|
|||
curl_easy_setopt(curl, CURLOPT_PROXY, "socks5://user:pass@myproxy.com");
|
||||
|
||||
/* enable username/password authentication only */
|
||||
curl_easy_setopt(curl, CURLOPT_SOCKS5_AUTH, (long)CURLAUTH_BASIC);
|
||||
curl_easy_setopt(curl, CURLOPT_SOCKS5_AUTH, CURLAUTH_BASIC);
|
||||
|
||||
/* Perform the request */
|
||||
curl_easy_perform(curl);
|
||||
|
|
@ -60,6 +60,11 @@ int main(void)
|
|||
}
|
||||
~~~
|
||||
|
||||
# HISTORY
|
||||
|
||||
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).
|
||||
|
||||
# %AVAILABILITY%
|
||||
|
||||
# RETURN VALUE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue