blob: 7b0e9e75c3ee702388b50db1bf2035f98475d164 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
. "$DIR/config.sh"
get_token
curl -s -X POST "http://$MODEM_IP/api/device/control" \
-H "Cookie: $COOKIE" \
-H "__RequestVerificationToken: $TOKEN" \
-H "Content-Type: text/xml" \
-d "<?xml version='1.0' encoding='UTF-8'?><request><Control>1</Control></request>"
|