mirror of
https://github.com/httpie/cli.git
synced 2024-11-22 15:53:13 +01:00
Added example for .netrc usage (see issue #139 in upstream.
This commit is contained in:
parent
6c3b983c18
commit
dac79a8efc
15
README.rst
15
README.rst
@ -469,7 +469,7 @@ come). There are two flags that control authentication:
|
|||||||
``basic`` so it can often be omitted.
|
``basic`` so it can often be omitted.
|
||||||
=================== ======================================================
|
=================== ======================================================
|
||||||
|
|
||||||
Authorization information from ``.netrc`` is honored as well.
|
|
||||||
|
|
||||||
Basic auth:
|
Basic auth:
|
||||||
|
|
||||||
@ -494,6 +494,19 @@ With password prompt:
|
|||||||
$ http -a username example.org
|
$ http -a username example.org
|
||||||
|
|
||||||
|
|
||||||
|
Authorization information from your ``.netrc`` file is honored as well:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
$ cat .netrc
|
||||||
|
machine httpbin.org
|
||||||
|
login httpie
|
||||||
|
password test
|
||||||
|
$ http httpbin.org/basic-auth/httpie/test
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
[...]
|
||||||
|
|
||||||
|
|
||||||
=======
|
=======
|
||||||
Proxies
|
Proxies
|
||||||
=======
|
=======
|
||||||
|
Loading…
Reference in New Issue
Block a user