Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
CURLOPT_PROXYPORT(3) | Library Functions Manual | CURLOPT_PROXYPORT(3) |
NAME
CURLOPT_PROXYPORT - port number the proxy listens onSYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXYPORT, long port);
DESCRIPTION
We discourage use of this option.DEFAULT
0PROTOCOLS
This functionality affects all supported protocolsEXAMPLE
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
curl_easy_setopt(curl, CURLOPT_PROXY, "localhost");
curl_easy_setopt(curl, CURLOPT_PROXYPORT, 8080L);
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
}
AVAILABILITY
Added in curl 7.1RETURN VALUE
Returns CURLE_OKSEE ALSO
CURLINFO_PRIMARY_PORT(3), CURLOPT_PORT(3), CURLOPT_PROXY(3), CURLOPT_PROXYTYPE(3)2024-12-21 | libcurl |