blob: 33552734e456c97bfd94adfdf442db5378f34caa (
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/public/simple' -d @$1
exit 0
|