Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 21 lines (11 sloc) 233 Bytes
#!/bin/bash
set -eux
port="${1:-9090}"
echo "Ping: "
curl -D- http://localhost:${port}/ping
echo
echo "Edit: "
curl -D- http://localhost:${port}/edit \
-d 'token=narf' \
-d 'content=This is the test text.
Please enjoy.'
Something went wrong with that request. Please try again.