mirror of
https://github.com/httpie/cli.git
synced 2025-04-11 11:31:51 +02:00
Augment cookie example in README for multiple cookies
This change updates the README to show how to pass multiple cookies.
This commit is contained in:
parent
383dba524a
commit
69247066dc
@ -425,7 +425,7 @@ To set custom headers you can use the ``Header:Value`` notation:
|
|||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ http example.org User-Agent:Bacon/1.0 Cookie:valued-visitor=yes X-Foo:Bar Referer:http://httpie.org/
|
$ http example.org User-Agent:Bacon/1.0 'Cookie:valued-visitor=yes;foo=bar' X-Foo:Bar Referer:http://httpie.org/
|
||||||
|
|
||||||
|
|
||||||
.. code-block:: http
|
.. code-block:: http
|
||||||
@ -433,7 +433,7 @@ To set custom headers you can use the ``Header:Value`` notation:
|
|||||||
GET / HTTP/1.1
|
GET / HTTP/1.1
|
||||||
Accept: */*
|
Accept: */*
|
||||||
Accept-Encoding: identity, deflate, compress, gzip
|
Accept-Encoding: identity, deflate, compress, gzip
|
||||||
Cookie: valued-visitor=yes
|
Cookie: valued-visitor=yes;foo=bar
|
||||||
Host: example.org
|
Host: example.org
|
||||||
Referer: http://httpie.org/
|
Referer: http://httpie.org/
|
||||||
User-Agent: Bacon/1.0
|
User-Agent: Bacon/1.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user