'Non-UI application (console application)
#Region Project Attributes
#CommandLineArgs: http://www.b4x.com
#End Region
Sub Process_Globals
End Sub
Sub AppStart (Args() As String)
If Args.Length = 0 Then
Log("URL is missing.")
ExitApplication2(1)
End If
Dim j As HttpJob
j.Initialize("j", Me)
j.Download(Args(0))
StartMessageLoop
End Sub
Sub JobDone(Job As HttpJob)
If Job.Success Then
Log(Job.GetString)
Else
Log(Job.ErrorMessage)
End If
Job.Release
ExitApplication2(0)
End Sub