goblog/test.sh

10 lines
231 B
Bash
Raw Normal View History

2018-11-04 13:22:12 +01:00
if [ -z ${1+x} ]; then
msg="test message"
else
msg="$1"
fi
2018-11-04 21:13:04 +01:00
curl localhost:12345/add -d "{\"content\": \"$msg\", \"Title\": \"title\", \"Secret\": \"asdf\", \"author\": \"kageru\"}" -H "Content-Type: application/json" -v
2018-11-04 13:22:12 +01:00