lang="b4x" title="Current Implementation"]j.PostString("https://apix.com/auth/login/", "username=123456&password=123456") j.GetRequest.SetHeader("Content-Type", "application/json") Wait For (j) JobDone (j As HttpJob) If j.Success Then Log("response " & j.GetString) cookies = j.Response.GetHeaders.Get("Set-Cookie") Log("header vals " & j.Response)
From the response headers, I need to get all the 'Set-Cookie' headers. But I'm not sure how to get the set-cookie value. Any help would be really appreciated.
Also, Once I have got it, I need to use these cookies to send further requests as these are authentication cookies. I'm not sure of that too