CURLOPT_PROXYPASSWORD.3 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. .\" generated by cd2nroff 0.1 from CURLOPT_PROXYPASSWORD.md
  2. .TH CURLOPT_PROXYPASSWORD 3 "2025-01-17" libcurl
  3. .SH NAME
  4. CURLOPT_PROXYPASSWORD \- password to use with proxy authentication
  5. .SH SYNOPSIS
  6. .nf
  7. #include <curl/curl.h>
  8. CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXYPASSWORD, char *pwd);
  9. .fi
  10. .SH DESCRIPTION
  11. Pass a char pointer as parameter, which should be pointing to the null\-terminated
  12. password to use for authentication with the proxy.
  13. The \fICURLOPT_PROXYPASSWORD(3)\fP option should be used in conjunction with
  14. the \fICURLOPT_PROXYUSERNAME(3)\fP option.
  15. The application does not have to keep the string around after setting this
  16. option.
  17. .SH DEFAULT
  18. blank
  19. .SH PROTOCOLS
  20. This functionality affects all supported protocols
  21. .SH EXAMPLE
  22. .nf
  23. int main(void)
  24. {
  25. CURL *curl = curl_easy_init();
  26. if(curl) {
  27. CURLcode res;
  28. curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
  29. curl_easy_setopt(curl, CURLOPT_PROXY, "http://localhost:8080");
  30. curl_easy_setopt(curl, CURLOPT_PROXYUSERNAME, "mrsmith");
  31. curl_easy_setopt(curl, CURLOPT_PROXYPASSWORD, "qwerty");
  32. res = curl_easy_perform(curl);
  33. curl_easy_cleanup(curl);
  34. }
  35. }
  36. .fi
  37. .SH AVAILABILITY
  38. Added in curl 7.19.1
  39. .SH RETURN VALUE
  40. Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or
  41. CURLE_OUT_OF_MEMORY if there was insufficient heap space.
  42. .SH SEE ALSO
  43. .BR CURLOPT_HTTPAUTH (3),
  44. .BR CURLOPT_PASSWORD (3),
  45. .BR CURLOPT_PROXYAUTH (3),
  46. .BR CURLOPT_PROXYUSERNAME (3)