Hello everyone I have a great confusion. I will try to explain:
I am making a Poststring in a web application, so that you can return the correct result to me, I must send it the PHPSESSID cookie, otherwise it does not work
and to get that cookie PHPSESSID, I use postman from there I get that value
My question is: how can I get that PHPSESSID value before submitting the PostString.
thanks in advance
I am making a Poststring in a web application, so that you can return the correct result to me, I must send it the PHPSESSID cookie, otherwise it does not work
B4X:
PHPSESSID = "0t96biq57q96cq8tpe5rpo0gla"
B4X:
Dim Map As Map = CreateMap("codigoHotel": 10853,"lg":"","usuario":14082, "pass": "Invitado123")
Dim gen As JSONGenerator
gen.Initialize(Map)
Dim j As HttpJob
PHPSESSID = "0t96biq57q96cq8tpe5rpo0gla"
j.Initialize("",Me)
j.PostString("https://app.lobbypms.com/entrar/validarDatos", gen.ToString)
j.GetRequest.SetContentType("application/x-www-form-urlencoded")
j.GetRequest.SetHeader("Cookie", "PHPSESSID="&PHPSESSID)
wait for (j) JobDone(job As HttpJob)
If j.Success Then
Dim jp As JSONParser
jp.Initialize(j.GetString)
Log(j.GetString)
File.WriteString(File.DirApp,"captura.txt",j.GetString)
Dim parser As JSONParser
parser.Initialize(j.GetString2("UTF8"))
'****************
Reporte_exel '(02)
'*****************
End If
j.Release
and to get that cookie PHPSESSID, I use postman from there I get that value
My question is: how can I get that PHPSESSID value before submitting the PostString.
thanks in advance
Last edited: