10 lines
231 B
Bash
10 lines
231 B
Bash
|
|
||
|
if [ -z ${1+x} ]; then
|
||
|
msg="test message"
|
||
|
else
|
||
|
msg="$1"
|
||
|
fi
|
||
|
|
||
|
curl localhost:12345/add -d "{\"content\": \"$msg\", \"Title\": \"title\", \"Secret\": \"asdawdwd\", \"author\": \"me\"}" -H "Content-Type: application/json" -v
|
||
|
|