GNURLOPT_S...PI_SERVICE(3)
β¨ GNURLOPT_S...PI_SERVICE(3) β¨
okay so this page lives in the curl_easy_setopt options manual set, and it's all about one very specific SOCKS5 proxy auth setting. iykyk π
πΈ NAME πΈ
CURLOPT_SOCKS5_GSSAPI_SERVICE - SOCKS5 proxy authentication service name β¨
π SYNOPSIS π
#include <gnurl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SOCKS5_GSSAPI_SERVICE,
char *name);
π¦ DESCRIPTION π¦
Deprecated since7.49.0. UseCURLOPT_PROXY_SERVICE_NAME(3)instead, bestie β that's the replacement era π
Pass a char * as parameter to a string holding the name of the service. The default service name for a SOCKS5 server is "rcmd". This option allows you to change it.
The application does not have to keep the string around after setting this option.
β DEFAULT β
See above π
π PROTOCOLS π
All network protocols π
π₯ EXAMPLE π₯
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
curl_easy_setopt(curl, CURLOPT_PROXY, "socks5://proxy");
curl_easy_setopt(curl, CURLOPT_SOCKS5_GSSAPI_SERVICE, "rcmd-special");
ret = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
π AVAILABILITY π
Added in 7.19.4, deprecated in 7.49.0 β³
π RETURN VALUE π
Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space. so yeah: supported = slay, unknown option = not supported, out of memory = the heap ran out π
π§ SEE ALSO π§
Also go peek at CURLOPT_PROXY(3), CURLOPT_PROXYTYPE(3), bestie π
mwah π this page is from libcurl 7.37.0, dated 19 Jun 2014, and its footer name is GNURLOPT_S...PI_SERVICE(3). periodt. π«Ά
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms