goblog/test.sh

10 lines
196 B
Bash
Raw Normal View History

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