docs: use .example URLs for proxies

This commit is contained in:
Daniel Stenberg 2025-12-05 13:33:02 +01:00
parent 0b69c47131
commit 58394b1c8c
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
34 changed files with 34 additions and 34 deletions

View file

@ -14,7 +14,7 @@ See-also:
- dump-ca-embed - dump-ca-embed
- proxy - proxy
Example: Example:
- --proxy-cacert CA-file.txt -x https://proxy $URL - --proxy-cacert CA-file.txt -x https://proxy.example $URL
--- ---
# `--proxy-cacert` # `--proxy-cacert`

View file

@ -13,7 +13,7 @@ See-also:
- capath - capath
- dump-ca-embed - dump-ca-embed
Example: Example:
- --proxy-capath /local/directory -x https://proxy $URL - --proxy-capath /local/directory -x https://proxy.example $URL
--- ---
# `--proxy-capath` # `--proxy-capath`

View file

@ -11,7 +11,7 @@ See-also:
- proxy-cert - proxy-cert
- proxy-key - proxy-key
Example: Example:
- --proxy-cert-type PEM --proxy-cert file -x https://proxy $URL - --proxy-cert-type PEM --proxy-cert file -x https://proxy.example $URL
--- ---
# `--proxy-cert-type` # `--proxy-cert-type`

View file

@ -12,7 +12,7 @@ See-also:
- proxy-key - proxy-key
- proxy-cert-type - proxy-cert-type
Example: Example:
- --proxy-cert file -x https://proxy $URL - --proxy-cert file -x https://proxy.example $URL
--- ---
# `--proxy-cert` # `--proxy-cert`

View file

@ -13,7 +13,7 @@ See-also:
- ciphers - ciphers
- proxy - proxy
Example: Example:
- --proxy-ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256 -x https://proxy $URL - --proxy-ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256 -x https://proxy.example $URL
--- ---
# `--proxy-ciphers` # `--proxy-ciphers`

View file

@ -11,7 +11,7 @@ See-also:
- crlfile - crlfile
- proxy - proxy
Example: Example:
- --proxy-crlfile rejects.txt -x https://proxy $URL - --proxy-crlfile rejects.txt -x https://proxy.example $URL
--- ---
# `--proxy-crlfile` # `--proxy-crlfile`

View file

@ -10,7 +10,7 @@ See-also:
- proxy - proxy
- insecure - insecure
Example: Example:
- --proxy-insecure -x https://proxy $URL - --proxy-insecure -x https://proxy.example $URL
--- ---
# `--proxy-insecure` # `--proxy-insecure`

View file

@ -11,7 +11,7 @@ See-also:
- proxy-key - proxy-key
- proxy - proxy
Example: Example:
- --proxy-key-type DER --proxy-key here -x https://proxy $URL - --proxy-key-type DER --proxy-key here -x https://proxy.example $URL
--- ---
# `--proxy-key-type` # `--proxy-key-type`

View file

@ -11,7 +11,7 @@ See-also:
- proxy-key-type - proxy-key-type
- proxy - proxy
Example: Example:
- --proxy-key here -x https://proxy $URL - --proxy-key here -x https://proxy.example $URL
--- ---
# `--proxy-key` # `--proxy-key`

View file

@ -11,7 +11,7 @@ See-also:
- proxy - proxy
- proxy-key - proxy-key
Example: Example:
- --proxy-pass secret --proxy-key here -x https://proxy $URL - --proxy-pass secret --proxy-key here -x https://proxy.example $URL
--- ---
# `--proxy-pass` # `--proxy-pass`

View file

@ -10,7 +10,7 @@ See-also:
- ssl-allow-beast - ssl-allow-beast
- proxy - proxy
Example: Example:
- --proxy-ssl-allow-beast -x https://proxy $URL - --proxy-ssl-allow-beast -x https://proxy.example $URL
--- ---
# `--proxy-ssl-allow-beast` # `--proxy-ssl-allow-beast`

View file

@ -10,7 +10,7 @@ See-also:
- ssl-auto-client-cert - ssl-auto-client-cert
- proxy - proxy
Example: Example:
- --proxy-ssl-auto-client-cert -x https://proxy $URL - --proxy-ssl-auto-client-cert -x https://proxy.example $URL
--- ---
# `--proxy-ssl-auto-client-cert` # `--proxy-ssl-auto-client-cert`

View file

@ -12,7 +12,7 @@ See-also:
- proxy-tlsuser - proxy-tlsuser
- proxy-tlspassword - proxy-tlspassword
Example: Example:
- --proxy-tlsauthtype SRP -x https://proxy $URL - --proxy-tlsauthtype SRP -x https://proxy.example $URL
--- ---
# `--proxy-tlsauthtype` # `--proxy-tlsauthtype`

View file

@ -11,7 +11,7 @@ See-also:
- proxy - proxy
- proxy-tlsuser - proxy-tlsuser
Example: Example:
- --proxy-tlspassword passwd -x https://proxy $URL - --proxy-tlspassword passwd -x https://proxy.example $URL
--- ---
# `--proxy-tlspassword` # `--proxy-tlspassword`

View file

@ -11,7 +11,7 @@ See-also:
- proxy - proxy
- proxy-tlspassword - proxy-tlspassword
Example: Example:
- --proxy-tlsuser smith -x https://proxy $URL - --proxy-tlsuser smith -x https://proxy.example $URL
--- ---
# `--proxy-tlsuser` # `--proxy-tlsuser`

View file

@ -9,7 +9,7 @@ Multi: mutex
See-also: See-also:
- proxy - proxy
Example: Example:
- --proxy-tlsv1 -x https://proxy $URL - --proxy-tlsv1 -x https://proxy.example $URL
--- ---
# `--proxy-tlsv1` # `--proxy-tlsv1`

View file

@ -50,7 +50,7 @@ int main(void)
long verifyresult; long verifyresult;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com"); curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy:443"); curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy.example:443");
res = curl_easy_perform(curl); res = curl_easy_perform(curl);
if(res) { if(res) {

View file

@ -72,7 +72,7 @@ int main(void)
CURLcode res; CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
/* using an HTTPS proxy */ /* using an HTTPS proxy */
curl_easy_setopt(curl, CURLOPT_PROXY, "https://localhost:443"); curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy.example:443");
curl_easy_setopt(curl, CURLOPT_PROXY_CAINFO, "/etc/certs/cabundle.pem"); curl_easy_setopt(curl, CURLOPT_PROXY_CAINFO, "/etc/certs/cabundle.pem");
res = curl_easy_perform(curl); res = curl_easy_perform(curl);
curl_easy_cleanup(curl); curl_easy_cleanup(curl);

View file

@ -73,7 +73,7 @@ int main(void)
struct curl_blob blob; struct curl_blob blob;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
/* using an HTTPS proxy */ /* using an HTTPS proxy */
curl_easy_setopt(curl, CURLOPT_PROXY, "https://localhost:443"); curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy.example:443");
blob.data = strpem; blob.data = strpem;
blob.len = strlen(strpem); blob.len = strlen(strpem);
blob.flags = CURL_BLOB_COPY; blob.flags = CURL_BLOB_COPY;

View file

@ -64,7 +64,7 @@ int main(void)
CURLcode res; CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
/* using an HTTPS proxy */ /* using an HTTPS proxy */
curl_easy_setopt(curl, CURLOPT_PROXY, "https://localhost:443"); curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy.example:443");
curl_easy_setopt(curl, CURLOPT_PROXY_CAPATH, "/etc/cert-dir"); curl_easy_setopt(curl, CURLOPT_PROXY_CAPATH, "/etc/cert-dir");
res = curl_easy_perform(curl); res = curl_easy_perform(curl);
curl_easy_cleanup(curl); curl_easy_cleanup(curl);

View file

@ -70,7 +70,7 @@ int main(void)
CURLcode res; CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
/* using an HTTPS proxy */ /* using an HTTPS proxy */
curl_easy_setopt(curl, CURLOPT_PROXY, "https://localhost:443"); curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy.example:443");
curl_easy_setopt(curl, CURLOPT_PROXY_ISSUERCERT, "/etc/certs/cacert.pem"); curl_easy_setopt(curl, CURLOPT_PROXY_ISSUERCERT, "/etc/certs/cacert.pem");
res = curl_easy_perform(curl); res = curl_easy_perform(curl);
curl_easy_cleanup(curl); curl_easy_cleanup(curl);

View file

@ -77,7 +77,7 @@ int main(void)
struct curl_blob blob; struct curl_blob blob;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
/* using an HTTPS proxy */ /* using an HTTPS proxy */
curl_easy_setopt(curl, CURLOPT_PROXY, "https://localhost:443"); curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy.example:443");
blob.data = certificateData; blob.data = certificateData;
blob.len = filesize; blob.len = filesize;
blob.flags = CURL_BLOB_COPY; blob.flags = CURL_BLOB_COPY;

View file

@ -61,7 +61,7 @@ int main(void)
if(curl) { if(curl) {
CURLcode res; CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin"); curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy:443"); curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy.example:443");
curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "superman"); curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "superman");
res = curl_easy_perform(curl); res = curl_easy_perform(curl);
curl_easy_cleanup(curl); curl_easy_cleanup(curl);

View file

@ -67,7 +67,7 @@ int main(void)
CURL *curl = curl_easy_init(); CURL *curl = curl_easy_init();
if(curl) { if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com"); curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy:443"); curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy.example:443");
curl_easy_setopt(curl, CURLOPT_PROXY_PINNEDPUBLICKEY, curl_easy_setopt(curl, CURLOPT_PROXY_PINNEDPUBLICKEY,
"sha256//YhKJKSzoTt2b5FP18fvpHo7fJYqQCjA" "sha256//YhKJKSzoTt2b5FP18fvpHo7fJYqQCjA"
"a3HWY3tvRMwE=;sha256//t62CeU2tQiqkexU74" "a3HWY3tvRMwE=;sha256//t62CeU2tQiqkexU74"

View file

@ -64,7 +64,7 @@ int main(void)
if(curl) { if(curl) {
CURLcode res; CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy"); curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy.example");
curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, "client.pem"); curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, "client.pem");
curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, "key.pem"); curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, "key.pem");
curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "s3cret"); curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "s3cret");

View file

@ -60,7 +60,7 @@ int main(void)
if(curl) { if(curl) {
CURLcode res; CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy"); curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy.example");
curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, "client.pem"); curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, "client.pem");
curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERTTYPE, "PEM"); curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERTTYPE, "PEM");
curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, "key.pem"); curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, "key.pem");

View file

@ -68,7 +68,7 @@ int main(void)
blob.len = filesize; blob.len = filesize;
blob.flags = CURL_BLOB_COPY; blob.flags = CURL_BLOB_COPY;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy"); curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy.example");
curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, "key.pem"); curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, "key.pem");
curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "s3cret"); curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "s3cret");
curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT_BLOB, &blob); curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT_BLOB, &blob);

View file

@ -64,7 +64,7 @@ int main(void)
if(curl) { if(curl) {
CURLcode res; CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy"); curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy.example");
curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, "client.pem"); curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, "client.pem");
curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, "key.pem"); curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, "key.pem");
curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "s3cret"); curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "s3cret");

View file

@ -53,7 +53,7 @@ int main(void)
if(curl) { if(curl) {
CURLcode res; CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy"); curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy.example");
curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, "client.pem"); curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, "client.pem");
curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, "key.pem"); curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, "key.pem");
curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEYTYPE, "PEM"); curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEYTYPE, "PEM");

View file

@ -62,7 +62,7 @@ int main(void)
CURLcode res; CURLcode res;
struct curl_blob blob; struct curl_blob blob;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy"); curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy.example");
blob.data = certificateData; blob.data = certificateData;
blob.len = filesize; blob.len = filesize;
blob.flags = CURL_BLOB_COPY; blob.flags = CURL_BLOB_COPY;

View file

@ -106,7 +106,7 @@ int main(void)
if(curl) { if(curl) {
CURLcode res; CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy"); curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy.example");
/* weaken TLS only for use with silly proxies */ /* weaken TLS only for use with silly proxies */
curl_easy_setopt(curl, CURLOPT_PROXY_SSL_OPTIONS, curl_easy_setopt(curl, CURLOPT_PROXY_SSL_OPTIONS,
CURLSSLOPT_ALLOW_BEAST | CURLSSLOPT_NO_REVOKE); CURLSSLOPT_ALLOW_BEAST | CURLSSLOPT_NO_REVOKE);

View file

@ -58,7 +58,7 @@ int main(void)
if(curl) { if(curl) {
CURLcode res; CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy"); curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy.example");
curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_TYPE, "SRP"); curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_TYPE, "SRP");
curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_USERNAME, "user"); curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_USERNAME, "user");
curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_PASSWORD, "secret"); curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_PASSWORD, "secret");

View file

@ -65,7 +65,7 @@ int main(void)
if(curl) { if(curl) {
CURLcode res; CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy"); curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy.example");
curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_TYPE, "SRP"); curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_TYPE, "SRP");
curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_USERNAME, "user"); curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_USERNAME, "user");
curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_PASSWORD, "secret"); curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_PASSWORD, "secret");

View file

@ -58,7 +58,7 @@ int main(void)
if(curl) { if(curl) {
CURLcode res; CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy"); curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy.example");
curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_TYPE, "SRP"); curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_TYPE, "SRP");
curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_USERNAME, "user"); curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_USERNAME, "user");
curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_PASSWORD, "secret"); curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_PASSWORD, "secret");