blob: 233d4114cf0bb26ea1324b5fc709d658879dd13c (
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:4080/public/simple' -d @$1
curl -H "X-Forwarded-User: heslinki" -XPOST 'http://localhost:4080/trusted/simple' -d @$1
exit 0
|