Sortix 1.1dev ports manual
This manual documents Sortix 1.1dev ports. You can instead view this document in the latest official manual.
CURLOPT_PRE_PROXY(3) | curl_easy_setopt options | CURLOPT_PRE_PROXY(3) |
NAME
CURLOPT_PRE_PROXY - set pre-proxy to useSYNOPSIS
#include <curl/curl.h>DESCRIPTION
Set the preproxy to use for the upcoming request. The parameter should be a char * to a zero terminated string holding the host name or dotted numerical IP address. A numerical IPv6 address must be written within [brackets].DEFAULT
Default is NULL, meaning no pre proxy is used.PROTOCOLS
All except file://. Note that some protocols don't do very well over proxy.EXAMPLE
CURL *curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/file.txt"); curl_easy_setopt(curl, CURLOPT_PREPROXY, "socks4://socks-proxy:1080"); curl_easy_setopt(curl, CURLOPT_PROXY, "http://proxy:80"); curl_easy_perform(curl); }
AVAILABILITY
Added in 7.52.0RETURN VALUE
Returns CURLE_OK if proxies are supported, CURLE_UNKNOWN_OPTION if not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space.SEE ALSO
CURLOPT_PROXY(3), CURLOPT_HTTPPROXYTUNNEL(3),September 23, 2018 | libcurl 7.69.0 |