How to make a post with a from data of empty json through HTTPie?
Use <<< operator like below.
http POST ooxx.asdf/ Content-Type:application/json <<< '{}'
Verbatim request data can be specified via redirected STDIN
:
$ echo '{}' | http httpbin.org/post
Note that for requests that include a body:
POST
is the default HTTP methodapplication/json
is the defaultContent-Type