1CURLOPT_PROXYPASSWORD(3)   curl_easy_setopt options   CURLOPT_PROXYPASSWORD(3)
2
3
4

NAME

6       CURLOPT_PROXYPASSWORD - password to use with proxy authentication
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXYPASSWORD, char *pwd);
12

DESCRIPTION

14       Pass a char * as parameter, which should be pointing to the null-termiā€
15       nated password to use for authentication with the proxy.
16
17       The CURLOPT_PROXYPASSWORD(3) option should be used in conjunction  with
18       the CURLOPT_PROXYUSERNAME(3) option.
19
20       The  application  does not have to keep the string around after setting
21       this option.
22

DEFAULT

24       blank
25

PROTOCOLS

27       Most
28

EXAMPLE

30       CURL *curl = curl_easy_init();
31       if(curl) {
32         curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
33         curl_easy_setopt(curl, CURLOPT_PROXY, "http://localhost:8080");
34         curl_easy_setopt(curl, CURLOPT_PROXYUSERNAME, "mrsmith");
35         curl_easy_setopt(curl, CURLOPT_PROXYPASSWORD, "qwerty");
36         ret = curl_easy_perform(curl);
37         curl_easy_cleanup(curl);
38       }
39

AVAILABILITY

41       Added in 7.19.1
42

RETURN VALUE

44       Returns CURLE_OK if the option is  supported,  CURLE_UNKNOWN_OPTION  if
45       not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space.
46

SEE ALSO

48       CURLOPT_PASSWORD(3),   CURLOPT_PROXYUSERNAME(3),   CURLOPT_HTTPAUTH(3),
49       CURLOPT_PROXYAUTH(3)
50
51
52
53libcurl 7.82.0                 November 26, 2021      CURLOPT_PROXYPASSWORD(3)
Impressum