Template:Data export/curl

From Awesome Baozam
Revision as of 13:56, 8 September 2016 by Baya (Talk | contribs) (Created page with "<pre><nowiki> HOST=baozam.net DEVICE= PERIOD=$(( 7 * 24 * 3600 )) STIME=0 STEP=g1h USER= PWD= curl "https://$HOST/index.php?action=csv&hosts=$DEVICE&period=$PERIOD&stime=$STI...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
HOST=baozam.net
DEVICE=
PERIOD=$(( 7 * 24 * 3600 ))
STIME=0
STEP=g1h
USER=
PWD=

curl "https://$HOST/index.php?action=csv&hosts=$DEVICE&period=$PERIOD&stime=$STIME&step=$STEP" \
    -H "Host: $HOST" --compressed \
    -d "name=$USER" -d "password=$PWD"