mirror of
https://github.com/httpie/cli.git
synced 2024-11-28 18:53:21 +01:00
Document $ALL_PROXY
support (close #676)
It’s been supported by python-requests since v2.11.0 (2016-08-08)
d79024f246/HISTORY.md (2110-2016-08-08)
This commit is contained in:
parent
3e24827f4d
commit
3ea75a3577
12
README.rst
12
README.rst
@ -893,10 +893,10 @@ With Basic authentication:
|
||||
Environment variables
|
||||
---------------------
|
||||
|
||||
You can also configure proxies by environment variables ``HTTP_PROXY`` and
|
||||
``HTTPS_PROXY``, and the underlying Requests library will pick them up as well.
|
||||
If you want to disable proxies configured through the environment variables for
|
||||
certain hosts, you can specify them in ``NO_PROXY``.
|
||||
You can also configure proxies by environment variables ``ALL_PROXY``,
|
||||
``HTTP_PROXY`` and ``HTTPS_PROXY``, and the underlying Requests library will
|
||||
pick them up as well. If you want to disable proxies configured through
|
||||
the environment variables for certain hosts, you can specify them in ``NO_PROXY``.
|
||||
|
||||
In your ``~/.bash_profile``:
|
||||
|
||||
@ -910,7 +910,9 @@ In your ``~/.bash_profile``:
|
||||
SOCKS
|
||||
-----
|
||||
|
||||
Homebrew-installed HTTPie comes with SOCKS proxy support out of the box. To enable SOCKS proxy support for non-Homebrew installations, you'll need to install ``requests[socks]`` manually using ``pip``:
|
||||
Homebrew-installed HTTPie comes with SOCKS proxy support out of the box.
|
||||
To enable SOCKS proxy support for non-Homebrew installations, you'll
|
||||
might need to install ``requests[socks]`` manually using ``pip``:
|
||||
|
||||
|
||||
.. code-block:: bash
|
||||
|
@ -517,7 +517,8 @@ network.add_argument(
|
||||
help="""
|
||||
String mapping protocol to the URL of the proxy
|
||||
(e.g. http:http://foo.bar:3128). You can specify multiple proxies with
|
||||
different protocols.
|
||||
different protocols. The environment variables $ALL_PROXY, $HTTP_PROXY,
|
||||
and $HTTPS_proxy are supported as well.
|
||||
|
||||
"""
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user