Hi.
I am looking for an old code, because the program must run on a device with android 5, that allows me to simply receive a json text. For this reason I use the Http library instead of the okhttputils2.
I tried using the OkhttpUtils2 library, but a handshake ssl error appears. that despite trying to solve with some examples I have seen, I have not managed to solve.
As for now I do not need to authenticate, with a simple code that does not require ssl, it is enough.
something like that
Thanks
I am looking for an old code, because the program must run on a device with android 5, that allows me to simply receive a json text. For this reason I use the Http library instead of the okhttputils2.
I tried using the OkhttpUtils2 library, but a handshake ssl error appears. that despite trying to solve with some examples I have seen, I have not managed to solve.
As for now I do not need to authenticate, with a simple code that does not require ssl, it is enough.
something like that
B4X:
Private Sub GetJsonText As String
Dim GetJson As http
Dim JsonText As String
GetJson.Initialize()
GetJson.url("https://jsonplaceholder.typicode.com/todos/1")
JsonText = GetJson.requestUrl
Return JsonText
End Sub
Thanks
Last edited: