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
12       *pwd);
13

DESCRIPTION

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

DEFAULT

25       blank
26

PROTOCOLS

28       Most
29

EXAMPLE

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

AVAILABILITY

42       Added in 7.19.1
43

RETURN VALUE

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

SEE ALSO

49       CURLOPT_PASSWORD(3),   CURLOPT_PROXYUSERNAME(3),   CURLOPT_HTTPAUTH(3),
50       CURLOPT_PROXYAUTH(3)
51
52
53
54libcurl 7.64.0                   May 30, 2017         CURLOPT_PROXYPASSWORD(3)
Impressum