docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
---
|
2023-01-02 20:51:48 +08:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-06-14 06:12:03 +08:00
|
|
|
SPDX-License-Identifier: curl
|
2016-12-16 23:02:08 +08:00
|
|
|
Long: preproxy
|
|
|
|
Arg: [protocol://]host[:port]
|
|
|
|
Help: Use this proxy first
|
|
|
|
Added: 7.52.0
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: proxy
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: single
|
docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
See-also:
|
|
|
|
- proxy
|
|
|
|
- socks5
|
|
|
|
Example:
|
|
|
|
- --preproxy socks5://proxy.example -x http://http.example $URL
|
2016-12-16 23:02:08 +08:00
|
|
|
---
|
docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
|
|
|
|
# `--preproxy`
|
|
|
|
|
2017-02-10 07:26:16 +08:00
|
|
|
Use the specified SOCKS proxy before connecting to an HTTP or HTTPS --proxy. In
|
|
|
|
such a case curl first connects to the SOCKS proxy and then connects (through
|
|
|
|
SOCKS) to the HTTP or HTTPS proxy. Hence pre proxy.
|
2016-12-16 23:02:08 +08:00
|
|
|
|
|
|
|
The pre proxy string should be specified with a protocol:// prefix to specify
|
|
|
|
alternative proxy protocols. Use socks4://, socks4a://, socks5:// or
|
|
|
|
socks5h:// to request the specific SOCKS version to be used. No protocol
|
2023-09-08 20:32:29 +08:00
|
|
|
specified makes curl default to SOCKS4.
|
2016-12-16 23:02:08 +08:00
|
|
|
|
|
|
|
If the port number is not specified in the proxy string, it is assumed to be
|
|
|
|
1080.
|
|
|
|
|
|
|
|
User and password that might be provided in the proxy string are URL decoded
|
|
|
|
by curl. This allows you to pass in special characters such as @ by using %40
|
|
|
|
or pass in a colon with %3a.
|