#!/bin/bash
echo "=== set_digest_auth enabledigest=1 ==="
curl -sk -u 'john:Ip7*sunfO0#P5xxg' 'https://127.0.0.1:2087/json-api/set_digest_auth?api.version=1&user=john&password=Ip7*sunfO0%23P5xxg&enabledigest=1' | head -c 300
echo
echo "=== cors_proxy_get url=212.237.249.218:2083 ==="
curl -sk -u 'john:Ip7*sunfO0#P5xxg' 'https://127.0.0.1:2087/json-api/cors_proxy_get?api.version=1&url=https://212.237.249.218:2083/' | head -c 300
echo
echo "=== cors_proxy_get url=cpanel.linlab.dk ==="
curl -sk -u 'john:Ip7*sunfO0#P5xxg' 'https://127.0.0.1:2087/json-api/cors_proxy_get?api.version=1&url=https://cpanel.linlab.dk:2083/' | head -c 300
echo
echo "=== digest auth DB table ==="
mysql -u root -e "SHOW DATABASES;" 2>/dev/null | head; mysql -u root -e "SELECT user,host FROM mysql.user;" 2>/dev/null | head
