From dac79a8efcd32a3bab6088bd6175ed8fe1cf1a99 Mon Sep 17 00:00:00 2001 From: Graeme West Date: Wed, 17 Apr 2013 16:32:55 +0100 Subject: [PATCH] Added example for .netrc usage (see issue #139 in upstream. --- README.rst | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 139de6c4..d6c03ebe 100644 --- a/README.rst +++ b/README.rst @@ -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 =======