Merge pull request #142 from capncodewash/netrc-example

Added example for .netrc usage (closes #139)
This commit is contained in:
Jakub Roztočil 2013-04-17 09:46:50 -07:00
commit d1b91bfa9c

View File

@ -469,7 +469,7 @@ come). There are two flags that control authentication:
``basic`` so it can often be omitted.
=================== ======================================================
Authorization information from ``.netrc`` is honored as well.
Basic auth:
@ -494,6 +494,19 @@ With password prompt:
$ 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
=======