GNURLOPT_PROXY_SERVICE_NAME(3)

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

✨ NAME ✨

Okay bestie, this is GNURLOPT_PROXY_SERVICE_NAME(3) β€” one of the curl_easy_setopt options, no cap β€” and it's all about the proxy authentication service name: CURLOPT_PROXY_SERVICE_NAME.

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnurl/curl.h>

CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXY_SERVICE_NAME, char
*name);

πŸ’– DESCRIPTION πŸ’–

Pass a char * as parameter to a string holding the name of the service β€” that's the whole assignment, bestie.

The default service name is "HTTP" for HTTP based proxies and "rcmd" for SOCKS5. This option allows you to change it. Main character energy for your proxy auth, fr fr. πŸ‘‘

The application does not have to keep the string around after setting this option. 🫢

🌸 DEFAULT 🌸

See above. That's it, that's the default section. πŸ’…

🌈 PROTOCOLS 🌈

All network protocols. Literally all of them, periodt.

⭐ EXAMPLE ⭐

CURL *curl = curl_easy_init();
if(curl) {
  CURLcode ret;
  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
  curl_easy_setopt(curl, CURLOPT_PROXY_SERVICE_NAME, "custom");
  ret = curl_easy_perform(curl);
}

πŸ”₯ AVAILABILITY πŸ”₯

Added in 7.43.0 for HTTP proxies, 7.49.0 for SOCKS5 proxies. Iconic timeline behavior, iykyk. ✨

πŸ’œ 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. No mystery, no cap. πŸ’€

πŸŽ€ SEE ALSO πŸŽ€


Cute little sign-off: this page is from libcurl 7.43.0, dated 17 Jun 2015, and it's the GNURLOPT_PROXY_SERVICE_NAME(3) manual page. Slay, bye bestie! πŸ’–

πŸ“¦ where this page comes from