Wish [SOLVED] Integrate InitializeAcceptAll into internal HttpUtils2 library - Erel (first post)    Sep 20, 2019 OkHttpUtils2 is a b4xlib. This means that the source code is inside the b4xlib file which is a zip file.
You can update it as needed, save it in the additional libraries folder and delete it from the internal one. This is a mature library which doesn't get updated very often. B4A Question OkHttpUtils2 HTTPS Untrusted certificate - Erel (first post)    Oct 26, 2018   (2 reactions) Yes. Remove OkHttpUtils2 library. Add the two code modules instead. Change hc.Initialize with hc.InitializeAcceptAll. B4A Tutorial [B4X] OkHttpUtils2 / iHttpUtils2 and accept all option - Erel    Sep 05, 2024   (17 reactions) Note that OkHttpUtils2, jOkHttpUtils2 and iHttpUtils2 are actually the exact same b4x library. jOkHttpUtils2_NONUI was required as a special version for non-ui B4J apps. It is no longer required and shouldn't be used. Starting from v2.90 it is very simple to initialize the internal http client with B4A Question Okhttp problem whit server SSL - Erel (first post)    Sep 03, 2017   (1 reaction) Yes. You should call OkHttpClient.InitializeAcceptAll.
There is no reason to use the old HttpUtils2 B4J Question [solved] problem client server solution with ssl - Erel (first post)    Aug 28, 2018   (1 reaction) It is not a matter of risk. The client will throw an error if the certificate is not recognized. You need to initialize OkHttpClient with InitializeAcceptAll (you will need to use OkHttpUtils2 source code instead of the library). B4J Question Disable SSL certificate check? - Tom1s (first post)    Jan 15, 2017 Ok I already tried OkHttpUtils2 and put hc.InitializeAcceptAll("hc") to httputils2service.bas.
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
I will try jhttputils2 next. B4A Question https SSL error by using "okhttputils2" - Erel (first post)    Sep 25, 2018   (2 reactions) 1. Remove OkHttpUtils2 library. 2. Add OkHttpUtils2 source code (https://www.b4x.com/search?query=OkHttpUtils2) 3. Replace hc.Initialize with hc.InitializeAcceptAll B4A Question Trust anchor for certification path not found. - DonManfred (first post)    Jan 07, 2018   (3 reactions) yes
You can use the source files of okhttputils2 and change
hc.Initialize
'to
hc.InitializeAcceptall inside the servicemodule B4A Question Apk Installation fails with intent - Erel (first post)    May 11, 2017 Sub DownloadApk
Dim hc As OkHttpClient
hc.InitializeAcceptAll("hc")
Dim req As OkHttpRequest
req.InitializeGet("http://xxxxxxxxxxxxxxxxxx")
hc.Execute(req, 1000)
End Sub
1. Why aren't you using OkHttpUtils2?
2. Don't create a new OkHttpClient every request. A single client should be created an B4A Question ResponseError. Reason: javax.net.ssl.SSLHandshakeException: Connection closed by peer, Response: - Semen Matusovskiy (first post)    Sep 22, 2018   (1 reaction) 1. About Don's suggestion Guess you use OkHttp and OkHttpUtils2 libraries. 1) Uncheck OkHttpUtils2. 2) Download OkHttpUtils2 source code - https://www.b4x.-zip.69304/ Unzip files into your app folder and add them to your project. 3) Open HttpUtils2Service. Find hc.Initialize("hc") and replace to hc. Page: 1   2   3   4   5   6   7   Powered by ColBERT |