Ich mach das bei unserem c360i wie wie folgt:
Python
import requests
BASE_URL = 'http://10.0.2.205/wcd/'
with requests.Session() as session:
data = {
'func': 'PSL_LP1_LOG',
'password': 'passwort'
}
session.post(BASE_URL + 'login.cgi', data=data)
response = session.get(BASE_URL + 'api/AppReqGetCounterInfo/_BySize')
print(response.text)
data = {'func': 'PSL_ACO_LGO'}
session.post(BASE_URL + 'a_user.cgi', data=data)
print("logged out")
Display More
Dann bekommst du deine Infos als JSON.