04.02.2020, 07:48
See this thread for a similar example: https://forum.logicmachine.net/showthread.php?tid=1921
First request is POST so you need to pass data like this:
If running an older FW you might also need to change socket.http to ssl.https in order to use https. Newer FW will detect https automatically.
First request is POST so you need to pass data like this:
Code:
data = "{'username':'user', 'password':'1234'}"
res, err, hdrs = socket.http.request(url1, data)
If running an older FW you might also need to change socket.http to ssl.https in order to use https. Newer FW will detect https automatically.