mirror of
https://github.com/httpie/cli.git
synced 2024-11-08 17:04:50 +01:00
Section ordering
This commit is contained in:
parent
8f7676a2a9
commit
6fd1ea0e5a
40
README.rst
40
README.rst
@ -605,26 +605,6 @@ To set custom headers you can use the ``Header:Value`` notation:
|
||||
X-Foo: Bar
|
||||
|
||||
|
||||
Cookies
|
||||
=======
|
||||
|
||||
HTTP clients send cookies to the server as regular `HTTP headers`_. That means,
|
||||
HTTPie does not offer any special syntax for specifying cookies — the usual
|
||||
``Header:Value`` notation is used:
|
||||
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# Send a single cookie:
|
||||
$ http example.org Cookie:sessionid=foo
|
||||
|
||||
# Send multiple cookies (quoted to prevent the shell from interpreting the ';'):
|
||||
$ http example.org 'Cookie:sessionid=foo;another-cookie=bar'
|
||||
|
||||
If you often deal with cookies in your requests, then chances are you'd appreciate
|
||||
the `sessions`_ feature.
|
||||
|
||||
|
||||
Default request headers
|
||||
-----------------------
|
||||
|
||||
@ -664,6 +644,26 @@ To send a header with an empty value, use ``Header;``:
|
||||
$ http httpbin.org/headers 'Header;'
|
||||
|
||||
|
||||
Cookies
|
||||
=======
|
||||
|
||||
HTTP clients send cookies to the server as regular `HTTP headers`_. That means,
|
||||
HTTPie does not offer any special syntax for specifying cookies — the usual
|
||||
``Header:Value`` notation is used:
|
||||
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# Send a single cookie:
|
||||
$ http example.org Cookie:sessionid=foo
|
||||
|
||||
# Send multiple cookies (quoted to prevent the shell from interpreting the ';'):
|
||||
$ http example.org 'Cookie:sessionid=foo;another-cookie=bar'
|
||||
|
||||
If you often deal with cookies in your requests, then chances are you'd appreciate
|
||||
the `sessions`_ feature.
|
||||
|
||||
|
||||
Authentication
|
||||
==============
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user