Last active
November 17, 2023 00:57
-
-
Save bluesid/3c334b90d4941aaeb54df5cd68279044 to your computer and use it in GitHub Desktop.
#httpie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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