GNURLOPT_PROXY_SERVICE_NAME(3)
β¨ 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
- 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