19.02.2019, 09:01
(19.02.2019, 08:12)admin Wrote: Erwin is correct. Try logging response headers:Thanx admin and Erwin
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
This it the hdrs output:
* table: [set-cookie] * string: SESSION=23136A000858325C; [content-type] * string: text/plain