1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 22:35:28 +02:00

xh: fix sending POST Request with JSON body example

Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
This commit is contained in:
Grzegorz Baranski 2021-04-05 15:46:12 +02:00 committed by Starbeamrainbowlabs
parent 8918dd4d6d
commit 13ab7eae61

View file

@ -7,7 +7,7 @@
`xh {{httpbin.org/get}}`
- Send a POST request with JSON body: `{"name": "ahmed", "age": 25}`:
- Send a POST request with JSON body: (each key specified is added to the top-level JSON object e.g. `{"name": "john", "age": 25}`):
`xh post {{httpbin.org/post}} {{name=john}} {{age:=25}}`