Hi, Im using OKHTTPUTILS2 with a Wait For; and it is causing me a .GetString error saying 'File Not Found'. I`ve been searching the forum for hours but can`t seem to find a solution. Below is the code I`m using, which I copied from the example:
B4X:
Dim login_job As HttpJob
Dim act As String
If Connected = True Then
ProgressDialogShow("Connecting to license server...")
login_job.Initialize("Login", Me)
login_job.Download2(strURL & "signin2.php", Array As String("user_id", GetDeviceId, "app", "Mob POS"))
Wait For (login_job) JobDone(login_job As HttpJob)
If login_job.Success Then
Dim parser As JSONParser
parser.Initialize(login_job.GetString)
act = parser.NextValue
Log(act)