GNURLOPT_S...PI_SERVICE(3)

πŸ“¦ version 7.72.0, in nixos 26.05, nixpkgs unstable

✨ 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 since 7.49.0. Use CURLOPT_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