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_HTTPPROXYTUNNEL(3) | Library Functions Manual | CURLOPT_HTTPPROXYTUNNEL(3) |
NAME
CURLOPT_HTTPPROXYTUNNEL - tunnel through HTTP proxySYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HTTPPROXYTUNNEL, long tunnel);
DESCRIPTION
Set the tunnel parameter to 1L to make libcurl tunnel all operations through the HTTP proxy (set with CURLOPT_PROXY(3)). There is a big difference between using a proxy and to tunnel through it.DEFAULT
0PROTOCOLS
This functionality affects all supported protocolsEXAMPLE
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/file.txt");
curl_easy_setopt(curl, CURLOPT_PROXY, "http://127.0.0.1:80");
curl_easy_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, 1L);
curl_easy_perform(curl);
}
}
AVAILABILITY
Added in curl 7.3RETURN VALUE
Returns CURLE_OKSEE ALSO
CURLOPT_PROXY(3), CURLOPT_PROXYPORT(3), CURLOPT_PROXYTYPE(3)2024-12-21 | libcurl |