B4A Library OkHttp - Replaces the Http library - Erel    
Mar 14, 2018   
(22 reactions)   
tags: Webservices.
The OkHttp library is based on the OkHttp SDK: http://square.github.io/okhttp/
As this is a newer SDK it supports new features such as SSL SNI, SPDY, Patch requests and better performance.
The OkHttp...+.
Attached is a modified version of HttpUtils2 library (v2.12) that is based on OkHttp instead of Http...("http://...", CreateMap("param1": "value1"), Array(fd))
OkHttp and...OkHttpUtils2 source code: OkHttpUtils2 / iHttpUtils2 / HttpUtils2 source code
It is included...
B4A Question Needing okHTTP support for Android 4.x - JakeBullet70    
Jun 22, 2022 have.
1st problem is OkHttpClient. It wants API level 21, I believe I need 16.
Question, Should I go...
link: include the older OkHttp / OkHttpUtils2 libraries.
You can use these libraries with newer versions of B4A....
link: is the link of b4a 11.2. or you can download other versions
https://github.com/AnywhereSoftware...
link: I am also attempting to write for 4.x for the same reasons as above. The link in #10 is no longer a...
B4A Question OKHttpUtils Issue - walterf25    
Oct 4, 2017("setProxy", Arr
java.lang.RuntimeException: Method: setProxy not found in: okhttp3.OkHttpClient... referring to:
Sub SetProxy (hc1 As OkHttpClient, Host As String, Port As Int)
Dim jo....Proxy", Array ("HTTP", socketAddress))
jo.GetFieldJO("client").RunMethod...
B4A Question OkHttp cancel download - Pendrush    
Dec 10, 2015How can I cancel already started download, when HttpUtils2Service is Destroyed?
Or cancel download after some time, for example after 30 sec?...
B4A Question #R8 and B4XLib crashing method not found in: okhttp3.Request$Builder - Robert Valentino    
Oct 24, 2026   
(1 reaction).OkHttpClient { *; }
-keep class okhttp3.Dispatcher { *; }
-keep class okhttp3.internal...Getting this error with #R8 - java.lang.RuntimeException: Method: method not found in: okhttp3...
link: .base64convert {*;}
-keep class okhttp3.OkHttpClient { *; }
-keep class okhttp3.Dispatcher...
link: The answer is - no, you shouldn't collect those rules.
Libraries should include all needed rule...
link: Good question, I was wondering the same thing about should I just start adding them to every project...
Bug? Updated jOKHttpUtils2 appears to have an issue. - Peter Simpson    
Sep 15, 2026)
at b4j/anywheresoftware.b4h.okhttp.OkHttpClientWrapper.executeWithTimeout(Unknown Source)
at b4j/anywheresoftware.b4h.okhttp.OkHttpClientWrapper.access$0(Unknown Source)
at b4j/anywheresoftware.b4h...
link: /post-1052186
I can confirm that after updating the jOkHttpUtils2.b4xlib file, BSP in B4J V10.70...
link: Fixed: https://www.b4x.com/android/forum/threads/updates-to-internal-libaries.48274/post-1052186...
link: .
Looking at the trace stack, I presume that the issue is with the updated okhttp......
Other [beta] B4A v14.2 is available for download - R8 optimizer - Erel    
Oct 6, 2026   
(21 reactions) keyword.
Example:
AddProguardText(
-keep class okhttp3.OkHttpClient { *; }
-keep class okhttp3.Dispatcher { *; }
-keep class okhttp3.internal.connection.RealCall$CallReference { *; }
-keep class okhttp3.internal.connection.RealCall { *; }
-keep class okhttp3.Request... less visible in Google Play: https://android-developers.googleblog.com/2026/08/app-quality-memory...
Other B4A v10.2 BETA is available for download - Erel    
Aug 31, 2020   
(34 reactions) updated to support latest version of Firebase SDK.
OkHttp updated based on OkHttp 3.14.9.
Support for... with xCustomListView), Http and HttpUtils2 (replaced with OkHttp and OkHttpUtils2).
B4XPages template... one as well.
Instructions:
Download command line tools v6609375: https://developer.android.com/studio#command-tools
Unpack in C:\Android
Download additional resources: https://b4xfiles-4c17.kxcdn.com/b4a/resources_9_20.zip
Unpack in C:\Android. It should look like this:
https://www.b4x.com...
B4A Question [solved] okhttp not removing headers in a POST request - DonManfred    
Jun 28, 2015Sub GetThumbnail(path As String, format As String, size As String)
Dim job As HttpJob
job.Initialize("getthumbnail",Me)
job.Tag = path
job.PostString(mApiV2urlContent&"files/get_thumbnail","")
job.GetRequest.SetHeader("Authorization".../get_thumbnail": You provided a non-empty HTTP "Content-Type" header ("application/x... using httputils2 2.10 and okhttp lib 0.95...
B4A Question Problem with OkHttp and OkHttpUtils2 - hatzisn    
Jun 10, 2016()
Dim hj As HttpJob
hj.Initialize("job1", Me)
hj.Download("http://......")
End Sub
Sub JobDone(job As HttpJob)
If job.Success Then
If job.JobName.... It never gets to the JobDone sub.
Instead I get this error:
http://www.dhqi.gr/Untitled.png
When I switch back to HTTP and HttpUtils2 everything works fine.
My B4A version is 3.82 and SDK engine...
link: Httputils2 and I ticked the OkHttp (version 1.01) and OkHttpUtils2 (version 2.20). What else...
Page: 1  
2  
3  
4  
5  
6  
7