mirror of
https://github.com/httpie/cli.git
synced 2024-11-22 07:43:20 +01:00
Update --proxy examples to include URLs to work with Requests v2.0.0..
This commit is contained in:
parent
2e535d8345
commit
81c99886fd
@ -547,7 +547,7 @@ protocol (which is included in the value in case of redirects across protocols):
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ http --proxy=http:10.10.1.10:3128 --proxy=https:10.10.1.10:1080 example.org
|
||||
$ http --proxy=http:http://10.10.1.10:3128 --proxy=https:https://10.10.1.10:1080 example.org
|
||||
|
||||
|
||||
With Basic authentication:
|
||||
@ -565,8 +565,8 @@ In your ``~/.bash_profile``:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
export HTTP_PROXY=10.10.1.10:3128
|
||||
export HTTPS_PROXY=10.10.1.10:1080
|
||||
export HTTP_PROXY=http://10.10.1.10:3128
|
||||
export HTTPS_PROXY=https://10.10.1.10:1080
|
||||
export NO_PROXY=localhost,example.com
|
||||
|
||||
|
||||
|
@ -430,11 +430,12 @@ network.add_argument(
|
||||
'--proxy',
|
||||
default=[],
|
||||
action='append',
|
||||
metavar='PROTOCOL:HOST',
|
||||
metavar='PROTOCOL:PROXY_URL',
|
||||
type=KeyValueArgType(SEP_PROXY),
|
||||
help="""
|
||||
String mapping protocol to the URL of the proxy (e.g. http:foo.bar:3128).
|
||||
You can specify multiple proxies with different protocols.
|
||||
String mapping protocol to the URL of the proxy
|
||||
(e.g. http:http://foo.bar:3128). You can specify multiple proxies with
|
||||
different protocols.
|
||||
|
||||
"""
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user