diff --git a/test.sh b/test.sh index 329518b..669fada 100755 --- a/test.sh +++ b/test.sh @@ -1,9 +1,9 @@ if [ -z ${1+x} ]; then - msg="test message" + read msg else msg="$1" fi -curl localhost:12345/add -d "{\"content\": \"$msg\", \"Secret\": \"asdf\", \"author\": \"kageru\"}" -H "Content-Type: application/json" -v +curl localhost:12345/add -d "{\"content\": \"$msg\", \"Secret\": \"asdf\", \"author\": \"kageru\"}" -H "Content-Type: application/json"