diff options
author | Seonah Moon <seonah1.moon@samsung.com> | 2020-12-23 19:06:58 +0900 |
---|---|---|
committer | Seonah Moon <seonah1.moon@samsung.com> | 2020-12-23 19:07:19 +0900 |
commit | b31894b8fe11ff4cfe97bd63eb4e62e14893c749 (patch) | |
tree | 2a50294b3b1651adb05650eb5a698b6f921e7677 /docs/libcurl/opts/CURLOPT_PRE_PROXY.3 | |
parent | 1127a2d91941b474b346c96a1499f3493a3f0f40 (diff) | |
download | curl-b31894b8fe11ff4cfe97bd63eb4e62e14893c749.tar.gz curl-b31894b8fe11ff4cfe97bd63eb4e62e14893c749.tar.bz2 curl-b31894b8fe11ff4cfe97bd63eb4e62e14893c749.zip |
Imported Upstream version 7.73.0upstream/7.73.0
Change-Id: I2ec6e2708d8245d75f7f5d0d289830840ab9ff9d
Diffstat (limited to 'docs/libcurl/opts/CURLOPT_PRE_PROXY.3')
-rw-r--r-- | docs/libcurl/opts/CURLOPT_PRE_PROXY.3 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/libcurl/opts/CURLOPT_PRE_PROXY.3 b/docs/libcurl/opts/CURLOPT_PRE_PROXY.3 index 173a0c095..c53556585 100644 --- a/docs/libcurl/opts/CURLOPT_PRE_PROXY.3 +++ b/docs/libcurl/opts/CURLOPT_PRE_PROXY.3 @@ -5,7 +5,7 @@ .\" * | (__| |_| | _ <| |___ .\" * \___|\___/|_| \_\_____| .\" * -.\" * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. +.\" * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. .\" * .\" * This software is licensed as described in the file COPYING, which .\" * you should have received as part of this distribution. The terms @@ -20,7 +20,7 @@ .\" * .\" ************************************************************************** .\" -.TH CURLOPT_PRE_PROXY 3 "September 23, 2018" "libcurl 7.68.0" "curl_easy_setopt options" +.TH CURLOPT_PRE_PROXY 3 "September 16, 2020" "libcurl 7.73.0" "curl_easy_setopt options" .SH NAME CURLOPT_PRE_PROXY \- set pre-proxy to use @@ -30,7 +30,7 @@ CURLOPT_PRE_PROXY \- set pre-proxy to use CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PRE_PROXY, char *preproxy); .SH DESCRIPTION Set the \fIpreproxy\fP to use for the upcoming request. The parameter -should be a char * to a zero terminated string holding the host name or dotted +should be a char * to a null-terminated string holding the host name or dotted numerical IP address. A numerical IPv6 address must be written within [brackets]. @@ -65,7 +65,7 @@ All except file://. Note that some protocols don't do very well over proxy. .nf CURL *curl = curl_easy_init(); if(curl) { - curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/file.txt"); + curl_easy_setopt(curl, CURLOPT_URL, "https://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); |