Android Question https 'Get' / not 'Post' - solved

FrankDev

Active Member
Licensed User
Longtime User
i have a vb 6 application that accesses a servet with 'get'.

how can i implement this with b4a ?

Best regards
Frank

B4X:
 With Inet1
                     
            .url = "https://api.xxxxxxxxx.co/api/v3/orders?number=67646"
            .Execute , "GET", , "Accept:application/json"

end with
 
Last edited:

mcqueccu

Expert
Licensed User
Longtime User


B4X:
Dim j As HttpJob
j.Initialize("", Me)
j.Download("https://api.xxxxxxxxx.co/api/v3/orders?number=67646")
j.GetRequest.SetContentType("Content-Type","application/json")
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
   Log(j.GetString)
End If
j.Release
 
Last edited:
Upvote 1
Top