Library documentation: HTTP - v1.36 B4A Tutorial [B4X] OkHttpUtils2 with Wait For - Erel    Apr 11, 2021   (56 reactions)   tags: image, wait, Download, Http MySql, Wait For, ws have a single sub that handles all requests results. Simplest example: Dim j As HttpJob j.Initialize("", Me) j.Download("https://www.google.com") Wait For (j) JobDone(j As HttpJob) If j.Success Then Log(j.GetString) End If j.Release Example of downloading a quote from a quotes service: Sub DownloadQuote Dim j As HttpJob j.Initialize("", Me) 'name is empty as it is no longer needed j.Download("http://quotesondesign.com/wp-json/posts?filter... B4A Tutorial Download huge files with HttpUtils2 - Erel    Jul 25, 2021   (18 reactions)   tags: download, erel, download with progress Better to use: https://www.b4x.com/android/forum/threads/simple-progress-http-download.127214/#post-796463 The attached project includes a slightly modified version of HttpUtils2 and a new service... size. http://www.b4x.com/basic4android/images/SS-2013-06-13_17.34.35.png It is very simple to use...) & "KB" End Sub Sub dd_Complete(Job As HttpJob) Log("Job completed: " &... are required: OkHttp StringUtils Phone (required in order to acquire a partial lock during the download... B4A Library OkHttp - Replaces the Http library - Erel    Mar 14, 2018   (22 reactions)   tags: Webservices OkHttpUtils2 source code: OkHttpUtils2 / iHttpUtils2 / HttpUtils2 source code It is included as an internal library. Usage: OkHttpUtils2 with Wait For The current Http library is based on the Android version of Apache HttpClient. Google has stopped updating this SDK a long time ago and... implementation. Note that if you are using HttpUtils2 (as you should) it is also based on Http library. The OkHttp library is based on the OkHttp SDK: http://square.github.io/okhttp/ As this is a newer SDK... B4A Question Needing okHTTP support for Android 4.x - JakeBullet70    Jun 22, 2022 Hi all. Working on an app that will NEVER see the play store and will be open source, GITHUB style. Anyway i want it to run on Android 4.x and above. Point being to re claim all those old Android devices every one just tosses in a drawer or the garbage dump and never use again. Am using the latest B4A and ran into issues where some libraries need a a newer API then the old phones . tablets have. 1st problem is OkHttpClient. It wants API level 21, I believe I need 16. Question, Should I go... B4A Tutorial [B4X] OkHttpUtils2 / iHttpUtils2 and accept all option - Erel    Oct 20, 2019   (16 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... There is another configurable conditional symbol: HU2_PUBLIC - makes the http client variable (hc) a public... relevant to B4J and B4A. Example: https://www.b4x.com/android/forum/threads/ntlm-again.110485/#post... B4A Code Snippet Set HTTP Request Header with OkHttpUtils2 - Erel    Sep 17, 2018   (11 reactions)   tags: http Description: The following code allows you to set the request headers before the request is sent. This is useful for example with sites that block requests without a User-Agent header. This code depends on HttpUtils2 and Http libraries: Dim j As HttpJob j.Initialize("job name", Me) j.... However internally HttpJob uses CallSubDelayed to send the request. So the request will only be sent.... The content type header should be set with SetContentType. Tags: http headers, httputils2, user agent... B4A Tutorial HttpUtils2 - Web services are now even simpler - Erel    Feb 28, 2016   (18 reactions)   tags: b4j, Http, Erel, b4a HttpUtils2 was replaced with OkHttpUtils2: https://www.b4x.com/android/forum/threads/okhttp-replaces-the-http-library.54723/ Both libraries are included in the IDE. HttpUtils2 is a small framework that helps with communicating with web services (Http servers). HttpUtils2 is an improved version of HttpUtils. The advantages of HttpUtils2 over HttpUtils are: Any number of jobs can run...) HttpUtils2 requires Basic4android v2.00 or above. It is made of two code modules... B4A Question Latest OkHttpUtils working with Android 4? - udg    Aug 19, 2022 Hi all. I have an old widget of mine running on an Android 4.4 device. I have to update it now, but I recall something changed in the underlying lib which causes current OkHttpUtils working from Android 5 up. So my question is: which is the latest B4A version sporting a copy of OkHttpUtils compatible with Android 4 devices? I plan to copy it to the Additonal Libs folder (while changing its name) and select it when compiling for my old device. For newer devices I will instead select the lib... B4R Library [module] rHttpUtils2 - Http Client - Erel    Feb 23, 2021   (10 reactions) The HttpJob module implements an http client. It is a simplified version of B4X HttpUtils2... to router.") Return End If HttpJob.Initialize("Example") HttpJob.Download("https://www.example.com") End Sub Sub JobDone (Job As JobResult) Log("...-Type header HttpJob.Initialize("Example2") 'add headers before calling Post or Download (this is different than the standard HttpUtils2 library). HttpJob.AddHeader... B4J Tutorial [server] jOkHttpUtils2 - server version - Erel    Jan 9, 2022   (9 reactions) OkHttpUtils2 methods are designed to be called on the main thread. This is the case in all platforms and configurations, except of B4J server solutions. Starting from jOkHttpUtils2 v2.95 it is possible to make it thread safe. This is done by following these steps: 1. Add the SERVER conditional symbol to the build configuration (Ctrl + B). 2. Add a reference to jBuilderUtils. Library: https... request is sent: OkHttpUtils2 - server mode! Relevant tutorial: Resumable Subs (wait for / sleep... Page: 1   2   3   4   5   6   7   |