Hi!
I want to download a text-file from a webserver via https (unfortunally the server doesn't support http).
I'm using the library: OkHttpUtils2 on Android 4.4.2
This is my code:
This file has a size of ~450 bytes and is only plain text (... about space wheater).
I'm getting the following error:
Because of the text-sequence "SSL23_GET_SERVER_HELLO:tlsv1", I think that the cause of this issue is TLS.
I was searching the web the last few hours, but I only found the hint, that it may be necessary to enable TLS on a phone (it is installed but disabled).
But if I open the textfile with my default browser on my phone, the textfile is displayed without any problems (and it tells me that the connection uses TLS 1.1).
Do you have any ideas, what I can do to successfully download this file?
Thank you and BR!
I want to download a text-file from a webserver via https (unfortunally the server doesn't support http).
I'm using the library: OkHttpUtils2 on Android 4.4.2
This is my code:
B4X:
Dim j As HttpJob
j.Initialize("", Me)
j.Download("https://services.swpc.noaa.gov/text/geoalert.txt")
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Log("Inhalt: " & j.GetString)
End If
j.Release
This file has a size of ~450 bytes and is only plain text (... about space wheater).
I'm getting the following error:
ResponseError. Reason: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x6328e530: Failure in SSL library, usually a protocol error
error:1407743E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert inappropriate fallback (external/openssl/ssl/s23_clnt.c:744 0x5e64a7e8:0x00000000), Response:
Because of the text-sequence "SSL23_GET_SERVER_HELLO:tlsv1", I think that the cause of this issue is TLS.
I was searching the web the last few hours, but I only found the hint, that it may be necessary to enable TLS on a phone (it is installed but disabled).
But if I open the textfile with my default browser on my phone, the textfile is displayed without any problems (and it tells me that the connection uses TLS 1.1).
Do you have any ideas, what I can do to successfully download this file?
Thank you and BR!