Minor buggy in the HttpClient example code...

Gary Miyakawa

Active Member
Licensed User
Longtime User
Code from the Document pages:
B4X:
Sub hc_ResponseSuccess (Response As HttpResponse, TaskId As Int)
    Dim resultString As String
    Result = Response.GetString("UTF8")
    'Work with the result
End Sub


Should be... (I believe)

B4X:
Sub hc_ResponseSuccess (Response As HttpResponse, TaskId As Int)
    Dim resultString As String
    resultString = Response.GetString("UTF8")
    'Work with the result
End Sub

At least, making that change made things work for me...

Cheers,

Gary M
 
Top