Skip to content

Instantly share code, notes, and snippets.

@bluesid
Last active November 17, 2023 00:57
Show Gist options
  • Save bluesid/3c334b90d4941aaeb54df5cd68279044 to your computer and use it in GitHub Desktop.
Save bluesid/3c334b90d4941aaeb54df5cd68279044 to your computer and use it in GitHub Desktop.
#httpie
# http version
$ http --version
# https://stackoverflow.com/questions/37215565/sending-nested-json-object-using-httpie
$ echo '{ "user": { "name": "john", "age": 10 } }' | http httpbin.org/post
$ http PUT localhost:8080/user <<<'{ "user": { "name": "john", "age": 10 }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment