1CURLOPT_SOCKS5_GSSAPI_SERVICcEu(r3l)_easy_setopt optCiUoRnLsOPT_SOCKS5_GSSAPI_SERVICE(3)
2
3
4

NAME

6       CURLOPT_SOCKS5_GSSAPI_SERVICE  -  SOCKS5  proxy  authentication service
7       name
8

SYNOPSIS

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

DESCRIPTION

16       Deprecated since 7.49.0. Use CURLOPT_PROXY_SERVICE_NAME(3) instead.
17
18       Pass a char * as parameter to a string holding the name of the service.
19       The default service name for a SOCKS5 server  is  "rcmd".  This  option
20       allows you to change it.
21
22       The  application  does not have to keep the string around after setting
23       this option.
24

DEFAULT

26       See above
27

PROTOCOLS

29       All network protocols
30

EXAMPLE

32       CURL *curl = curl_easy_init();
33       if(curl) {
34         curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
35         curl_easy_setopt(curl, CURLOPT_PROXY, "socks5://proxy");
36         curl_easy_setopt(curl, CURLOPT_SOCKS5_GSSAPI_SERVICE, "rcmd-special");
37         ret = curl_easy_perform(curl);
38         curl_easy_cleanup(curl);
39       }
40

AVAILABILITY

42       Added in 7.19.4, deprecated in 7.49.0
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_PROXY(3), CURLOPT_PROXYTYPE(3),
50
51
52
53libcurl 7.66.0                   May 31, 2017 CURLOPT_SOCKS5_GSSAPI_SERVICE(3)
Impressum