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 session script
#5
Yes, you need to set the respective header:
Code:
headers =
  {
    Cookie = cookies,
    ...

There are some other issues with your script:
1. csrf token extraction does not skip the double quotes, it should be like this:
Code:
local csrf_token = string.sub(response,j+1,k-1)

2. request should be done using "application/x-www-form-urlencoded" content type. Data should be encoded using this format, not JSON. See encodepost function here: https://forum.logicmachine.net/showthrea...1#pid27711
Reply


Messages In This Thread
Http session script - by Nikitkam - 18.01.2023, 21:53
RE: Http session script - by Nikitkam - 19.01.2023, 07:04
RE: Http session script - by admin - 19.01.2023, 08:46
RE: Http session script - by Nikitkam - 19.01.2023, 09:58
RE: Http session script - by admin - 19.01.2023, 10:03
RE: Http session script - by Nikitkam - 19.01.2023, 21:04

Forum Jump: