Skip to content

Commit

Permalink
Merge pull request #142 from capncodewash/netrc-example
Browse files Browse the repository at this point in the history
Added example for .netrc usage (closes #139)
  • Loading branch information
jkbrzt committed Apr 17, 2013
2 parents 6c3b983 + dac79a8 commit d1b91bf
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.rst
Expand Up @@ -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:
Expand All @@ -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
=======
Expand Down

0 comments on commit d1b91bf

Please sign in to comment.