asciimoo / wuzz

Interactive cli tool for HTTP inspection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature request] --json flag

lopezjurip opened this issue · comments

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)

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)"

added in 64a6272