1CURLOPT_PROXY_SERVICE_NAME(3c)url_easy_setopt optionCsURLOPT_PROXY_SERVICE_NAME(3)
2
3
4

NAME

6       CURLOPT_PROXY_SERVICE_NAME - proxy authentication service name
7

SYNOPSIS

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

DESCRIPTION

15       Pass a char * as parameter to a string holding the name of the service.
16       The  default  service  name is "HTTP" for HTTP based proxies and "rcmd"
17       for SOCKS5. This option allows you to change it.
18
19       The application does not have to keep the string around  after  setting
20       this option.
21

DEFAULT

23       See above
24

PROTOCOLS

26       All network protocols
27

EXAMPLE

29       CURL *curl = curl_easy_init();
30       if(curl) {
31         CURLcode ret;
32         curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
33         curl_easy_setopt(curl, CURLOPT_PROXY_SERVICE_NAME, "custom");
34         ret = curl_easy_perform(curl);
35       }
36

AVAILABILITY

38       Added in 7.43.0 for HTTP proxies, 7.49.0 for SOCKS5 proxies.
39

RETURN VALUE

41       Returns  CURLE_OK  if  the option is supported, CURLE_UNKNOWN_OPTION if
42       not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space.
43

SEE ALSO

45       CURLOPT_PROXY(3), CURLOPT_PROXYTYPE(3),
46
47
48
49libcurl 7.61.1                   May 31, 2017    CURLOPT_PROXY_SERVICE_NAME(3)
Impressum