Skip to content

Instantly share code, notes, and snippets.

@marcobazzani
Created May 25, 2020 22:02
Show Gist options
  • Save marcobazzani/de642ac996b4c00e1fb4e7f73024571f to your computer and use it in GitHub Desktop.
Save marcobazzani/de642ac996b4c00e1fb4e7f73024571f to your computer and use it in GitHub Desktop.
#!/bin/bash
curl 'https://172.16.0.223:8443/api/login' --data '{"username":"admin","password":"password"}' --compressed --insecure -c cookies.txt -b cookies.txt -sS |jq .
curl 'https://172.16.0.223:8443/api/s/default/cmd/devmgr' --data-binary '{"cmd":"speedtest"}' --compressed --insecure -c cookies.txt -b cookies.txt -sS | jq .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment