forked from extern/httpie-cli
Updated README.
This commit is contained in:
parent
4c0d7d526f
commit
4957686bcd
13
README.rst
13
README.rst
@ -2,7 +2,7 @@
|
||||
HTTPie: cURL for Humans
|
||||
***********************
|
||||
|
||||
v0.2.8dev (`stable version`_)
|
||||
v0.2.8-alpha (`stable version`_)
|
||||
|
||||
HTTPie is a **command line HTTP client** whose goal is to make CLI interaction
|
||||
with web services as **human-friendly** as possible. It provides a
|
||||
@ -507,25 +507,32 @@ Sessions
|
||||
========
|
||||
|
||||
HTTPie supports named sessions, where several options and cookies sent
|
||||
by the server persists between requests:
|
||||
by the server persist between requests:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
http --session=user1 --auth=user1:password example.org
|
||||
|
||||
|
||||
Now you can always refer to the session by passing ``--session=user1``,
|
||||
and the credentials and cookies will be reused:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
http --session=user1 GET example.org
|
||||
|
||||
|
||||
Since sessions are named, you can switch between multiple sessions:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
http --session=user2 --auth=user2:password example.org
|
||||
|
||||
Note that session cookies respect domain and path.
|
||||
|
||||
Note that session cookies respect domain and path.
|
||||
Session data are store in ``~/httpie/sessions/<name>.pickle``.
|
||||
|
||||
|
||||
==============
|
||||
Output Options
|
||||
==============
|
||||
|
Loading…
Reference in New Issue
Block a user