Hello
I tried the jOKHTTPUtils2 Wait For demo code from Erel, however, I never seem to get any result, nor any error, how can I identify the proble?
Full code used:
Output:
And it stays like this forever. I have a normal internet connection. How can I identify what's going on here?
Thank you
I tried the jOKHTTPUtils2 Wait For demo code from Erel, however, I never seem to get any result, nor any error, how can I identify the proble?
Full code used:
B4X:
'Non-UI application (console / server application)
#Region Project Attributes
#CommandLineArgs:
#MergeLibraries: True
#End Region
Sub Process_Globals
End Sub
Sub AppStart (Args() As String)
Dim j As HttpJob
j.Initialize("", Me)
j.Download("http://www.google.com")
Log("Waiting...")
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Log(j.GetString)
Else
Log(j.ErrorMessage)
End If
Log("Never reached")
j.Release
End Sub
'Return true to allow the default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
Return True
End Sub
Output:
Waiting...
And it stays like this forever. I have a normal internet connection. How can I identify what's going on here?
Thank you