19.02.2019, 08:12
Erwin is correct. Try logging response headers:
Logged headers should contain "set-cookie" field which then should be parsed and passed as "cookie" header to next request. This post has a similar example though first request is different since login token is in response JSON body: https://forum.logicmachine.net/showthrea...74#pid5774
Code:
url = ...
res, code, hdrs, stat = socket.http.request(url)
log(hdrs)
Logged headers should contain "set-cookie" field which then should be parsed and passed as "cookie" header to next request. This post has a similar example though first request is different since login token is in response JSON body: https://forum.logicmachine.net/showthrea...74#pid5774