This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

http.request more then 1 command in the same session
#5
(19.02.2019, 08:12)admin Wrote: Erwin is correct. Try logging response headers:

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
Thanx admin and Erwin Smile

This it the hdrs output:
* table: [set-cookie] * string: SESSION=23136A000858325C; [content-type] * string: text/plain
Reply


Messages In This Thread
RE: http.request more then 1 command in the same session - by gjniewenhuijse - 19.02.2019, 09:01

Forum Jump: