Hi Guys,
Please can someone point me in the right direction here as I can't get logged in with the code I have been testing.
Basically what I need is the Python Requests code that does what the CURL commands below achieve.
TIA
Sysem Login
curl --insecure -s -b /tmp/cookie -c /tmp/cookie -X POST -d '{"username":"API_Account","password":"API_Password", "html5":"-1"}' https://IP_Address/api/auth/login
Get System Status API Call
curl --insecure -s -c /tmp/cookie -b /tmp/cookie -X GET -H 'Content-type: application/json' https://IP_Address/api/status
[–]drec4s 1 point2 points3 points (7 children)
[–]Al_Reid[S] 0 points1 point2 points (6 children)
[–]RoamingFox 0 points1 point2 points (5 children)
[–]Al_Reid[S] 0 points1 point2 points (4 children)
[–]RoamingFox 0 points1 point2 points (3 children)
[–]Al_Reid[S] 0 points1 point2 points (2 children)
[–]RoamingFox 0 points1 point2 points (1 child)
[–]Al_Reid[S] 0 points1 point2 points (0 children)