'Will work
Sub AppStart (Args() As String)
Download
StartMessageLoop
End Sub
Private Sub Download
Dim job As HttpJob
job.Initialize("", Me)
job.Download("https://www.google.com")
Wait For (job) JobDone(job As HttpJob)
If job.Success Then
Log(job.GetString)
End If
job.Release
StopMessageLoop 'or ExitApplication
End Sub