Sub Process_Globals
Dim host As HttpClient
Dim Request As HttpRequest
Dim hostAddress As String
Dim Transmit As String
Dim Receive As String
Dim task_Lugares As Int = 1
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
hostAddress = "http://myhost.com/dataGet.php"
Transmit = hostAddress & ""
host.Initialize("host")
End If
Request.InitializeGet(Transmit)
Request.Timeout = 60000
host.Execute(Request, task_Lugares)
ProgressDialogShow("Loading...")
End Sub
Sub host_ResponseSuccess (Response As HttpResponse, TaskId As Int)
ProgressDialogHide
Receive = Response.GetString("UTF8") ' <--- CRAAAASSHHH!!!
Log("Response from server: " & Receive)
End Sub