[Feature request] --json flag
lopezjurip opened this issue · comments
Patricio López Juri commented
I would be really helpful to init wuzz
with a --json
/ -j
flag and automatically set the Content-Type
and Accept headers
set to application/json
.
Example:
$ "$GOPATH/bin/wuzz" --json
Related to #9 (comment)
Adam Tauber commented
A shell alias can be defined as a workaround.
E.g.: alias wuzz-json='wuzz -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d'
, and you can execute wuzz-json '{"x": 3}'
or wuzz-json "$(cat xy.json)"
Adam Tauber commented
added in 64a6272