1
0
Fork 0

follow redirect for dumpagency

This commit is contained in:
Kaveh Vahedipour 2016-09-27 16:12:47 +02:00
parent 5ae2dcaa08
commit 4b8148edee
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
if [ "$*" == "" ] ; then
curl -s X POST http://localhost:4001/_api/agency/read -d '[["/"]]' | jq .
curl -Ls http://localhost:4001/_api/agency/read -d '[["/"]]' | jq .
else
curl -s -X POST http://localhost:4001/_api/agency/read -d '[["/"]]' | jq $*
curl -Ls http://localhost:4001/_api/agency/read -d '[["/"]]' | jq $*
fi