B4J Question [ Jserver Handler ] HttpJob dont working on Handler

Waldemar Lima

Well-Known Member
Licensed User
helllo everyone !!

i am trying to create a HttpJob to get an API data , but I'm doing something wrong and I can't see where the problem is ...

httpjob code >

B4X:
Dim j As HttpJob
        j.Initialize("", Me)
        j.Download("192.168.1.9/cgi-bin/test.exe")
        resp.Write("<h1>asdas</h1>") ' this responde write works ...
        StartMessageLoop  '<- is this in the right place?
        Wait For (j) JobDone(j As HttpJob)
        resp.Write("<h1>asdas</h1>") ' this response write dont works ...
        If j.Success Then
            log(j.GetString)
        End If
        j.Release
        StopMessageLoop'<- is this in the right place?
    End If
 
Top