Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 18 lines (11 sloc) 0.233 kb
77e459f2 » docwhat
2011-01-17 Various development bits and bobs.
1 #!/bin/bash
2
3 set -eux
4
148a4bc0 » docwhat
2011-01-17 Fixed test.sh
5 port="${1:-9090}"
77e459f2 » docwhat
2011-01-17 Various development bits and bobs.
6
7 echo "Ping: "
8
9 curl -D- http://localhost:${port}/ping
10
11 echo
12 echo "Edit: "
13
14 curl -D- http://localhost:${port}/edit \
15 -d 'token=narf' \
16 -d 'content=This is the test text.
17
18 Please enjoy.'
19
20
Something went wrong with that request. Please try again.