summaryrefslogtreecommitdiff
path: root/test/test-simple.sh
blob: bc1ab60f3d3946d9a038f2ef03b9f0050be3b4f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

if [ -z "$1" ]; then
  echo "Usage: $0 <json-file>"
  exit 1
fi

#curl -XPOST 'http://localhost:4000/public/simple' -d @$1
curl -H "X-Forwarded-User: heslinki" -XPOST 'http://localhost:4000/trusted/simple' -d @$1

exit 0