B4A Tutorial [B4X] OkHttpUtils2 / iHttpUtils2 and accept all option - Erel    
Jul 27, 2025   
(17 reactions).
Starting from v2.90 it is very simple to initialize the internal http client with the 'accept all' option.
The accept all option means that certificates will not be validated.
It is done...
link: with the 'accept all' option.
The accept all option means that certificates will not...
link: Is the source code of iHttpUtils 2.9 available?
1. Note that OkHttpUtils2, jOkHttpUtils2 and iHttpUt...
link: Is the source code of iHttpUtils 2.9 available?...
B4J Code Snippet jWebSocketClient v2 accept all certificates - Erel    
Aug 16, 2026   
(10 reactions))
SetAcceptAll(ws)
ws.Connect("wss://ws.postman-echo.com/raw")
Wait For ws_Connected
Log("connected")
ws.SendTextAsync("test")
End Sub
Private Sub SetAcceptAll...
link: Updated for compatibility with jServer5. Thanks @Chris2
https://www.b4x.com/android/forum/threads/jserver-5-based-on-jetty-12-1.171536/post-1050562...
B4J Question How to create a WebSocketClient that accepts all certificates - kostefar    
Jan 29, 2018
Dim cs As CustomTrustManager
cs.InitializeAcceptAll
ws1.Initialize("ws")
ws1...Dear All,
As requested by Erel in: https://www.b4x.com/android/forum/threads/retrieving-websocket...
link: I don't think that it is related to the unauthorized certificate. Please start a new thread and ...
link: Ok, so it does work, but not without glitches.
However, I get various errors at random times. For e...
B4i Question Sanity check: Does HttpClient.InitializeAcceptAll actually work? - Sandman    
Sep 3, 2024 the certificate checks. On Android one does this with HttpClient.InitializeAcceptAll, and it works... .InitializeAcceptAll and yet I get ”An SSL error has occurred and a secure connection to the server cannot...
link: Thanks for checking, appreciated...
link: Tested and the answer is:
It works with ATS disabled.
I've added a note to that tutorial....
link: Thanks, I'll investigate further and report back here if I find something relevant.
In the mean...
B4A Question HTTP Utils - ExecuteCredentials and InitializeAcceptAll - moster67    
Dec 7, 2011Hi, just looking into HTTP Utils and see if I can adapt my existing HTTP-code into using these code-modules.
In my old code, I am using the options ExecuteCredentials and InitializeAcceptAll. If I use HTTP Utils, how would I need to adapt my code within HTTP Utils to use above two options...
link: Thanks Erel. Will try this later....
link: .Initialize with hc.InitializeAcceptAll in Sub Service_Create.
The requests are executed in line 70...
B4J Question jWebSocketClient v2.00 Accept all certificates - Erel (first post)    
Oct 25, 2023   
(1 reaction)https://www.b4x.com/android/forum/threads/jwebsocketclient-v2-accept-all-certificates.157001/...
link: I've been investigating this further...
Based on this & this, we have
jetty-9.4.16.v20190411 - 11 April 2019
...
+ 3464 Sp...
link: the Accept All certificates code from here :
'accept all trust manager
Dim ssl As JavaObject...
B4A Question InitializeAcceptAll - xeriko    
Oct 21, 2013before this version, http2utils is not included to ide. With this version it included but i have issue.
In previous version we can change Initialize to InitializeAcceptAll but now with library we can't change this.
How can change from Initialize to InitializeAcceptAll in Http2Utils library?...
link: Remove the reference to HttpUtils2 library and add the code modules instead....
Wish Add AcceptAllCerts boolean to HTTPJOB Initialize - JohnF76 (first post)    
Oct 29, 2020I have already made those changes to the source but each time you release a new version of the libra...
link: Check HttpUtils2Service source code (it is inside the b4xlib). Should be simple to change it as you ...
link: Manfred,
Thanks for replying.
I know of this setting but as far as I'm aware, it's a compile...
link:
Add AcceptAllCerts boolean parameter to the HTTPJOB Initialize so I can control accepting of any...
B4A Question OkHttpUtils2 and accept all option - Erel (first post)    
Dec 26, 20191. Check the logs and look for a message that HttpClient was initialized with accept all.
2. 'Accept all' option solves a very specific case where the certificate is not recognized. It will not help in cases where the SSL protocol is not supported by the device.
A possible solution for devices that don't support TLS 1.2 and newer protocols: https://www.b4x.com/android/forum/threads...
link: simple to initialize the internal http client with the 'accept all' option.
The accept all...
B4A Question Can i use add trusted paid SSL to my application? without use InitializeAcceptAll - evbedp (first post)    
Nov 13, 2019thank you for use full information. thank you so much....
link: Certificate then you do not need InitializeAcceptAll...
link: can i add trusted certificate to my application?...
Page: 1  
2  
3  
4  
5  
6  
7