mirror of
https://github.com/httpie/cli.git
synced 2024-11-25 17:23:25 +01:00
Add a bash here string example
This commit is contained in:
parent
3a46149de1
commit
b6309547d5
@ -1112,6 +1112,13 @@ You can use ``echo`` for simple data:
|
||||
$ echo '{"name": "John"}' | http PATCH example.com/person/1 X-API-Token:123
|
||||
|
||||
|
||||
You can also use a Bash *here string*:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ http example.com/ <<<'{"name": "John"}'
|
||||
|
||||
|
||||
You can even pipe web services together using HTTPie:
|
||||
|
||||
.. code-block:: bash
|
||||
|
Loading…
Reference in New Issue
Block a user