1. behnam_tr

    B4J Question How send parallel http request without delay?

    Hello I want to send 10 HTTP requests at the same time Time is very important to me, all requests must be sent exactly at 10:00:00 There is no serious problem when there is only one request But when there are 10 requests, all subsequent requests are delayed by 100 to 200 milliseconds and...
  2. Plutoam

    Android Question OkHttpUtils2 v3.02 Not Working In Receiver

    Hello, I am using the latest update of the OkhttpUtils2 library, which is version 3.02, in the FirebaseMessaging Receiver, some requests are not executed. It gives very strange errors Sometimes it even gives an error, but the request is executed and sent to the server And when the program is...
  3. drgottjr

    B4A Library B4A Welcomes SSE

    so, there's something called server side events (SSE). it apparently has something to do with notifications from a web server to a browser. i'm guessing it's what happens when you see an annoying pop-up message from a web server asking persmission to send you notifications. good luck with...
  4. H

    Android Tutorial Understanding Network security configuration

    Every developer must understand this article if developing any kind of network communication app. Android os recent versions put end apps users privacy at the heart of its platform, the network communication between apps MUST BE secure by default, meaning connection must be to HTTPS not HTTP ...
  5. Myr0n

    Android Question Alternative to okhttp 1.5?

    Hello I am using okhttputils2 version 3.0, recently I made a change in an old project app that runs in some devices with android 4.x My problem now is that since the latest version of okhttp 1.5 the minimum sdk version is 21 (android 5) my old project in devices android 4.x has some issues...
  6. king_mkv

    Android Question post requests in b4a

    Hello my friends I want to send a request in Basic Four Android and show a response to the user, depending on the response I get from the server. I used to work with Python, and there it was very easy to use a site to convert curls to Python commands. Is there a way I can request a server with a...
  7. red30

    Android Question Problems with transferring a large number of photos to the server.

    I implemented it like this: Sub Post (Vin As String) Dim templist As List templist=File.ListFiles(File.DirInternal&Vin) Dim testerr="" As String Dim re=False As Boolean For i=0 To templist.Size-1 Sleep(50) Dim s=templist.Get(i) As String If...
  8. lnxpy

    Android Question Getting "Bad Request" in posting JSON Data to an Endpoint

    Hey guys, hope you're doing well. I want to create an application to post some JSON data to an endpoint and get a field from the returned response. Whenever I click the button it takes back with the "Bad Request" error and says that two "title" and "script" fields are required. (I've already...
  9. Sandman

    Android Question [SOLVED] Sanity Check: OkHttp_ResponseError and StatusCode=200 at same time?

    I have a few users seeing a rare error that I have never seen myself when testing my app, so I'm working my way through the source to figure out what's happening. And now I have to ask a control question to the forum: In OkHttp, is it possible to enter ResponseError, and at the same time have...
  10. juniorteacher

    Android Question No Error but No File Uploaded,use PostMultipart

    I Follow Tutorial https://www.b4x.com/android/forum/threads/upload-image-to-server-postmultipart-and-php.82682/#post-525412 No error but no fileuploaded here is my project thanks for help, solved
  11. F

    Android Question Migrating from Http to OkHttp

    I HAVE Dim webclient As OkHttpClient Dim webrequest As OkHttpRequest THEN Sub webClient_ResponseSuccess (resp As OkHttpResponse, TaskId As Int) xml = resp.GetString("UTF8") RELATED TO THE OLD Http LIBRARY. What is the equivalent instruction for OkHttp??? Many many thanks to solvers.
  12. shb777

    Android Question run code only when all jobs completed successfully

    I'm using OkHttp library and running three jobs, Job1, job2 and job3. I have code i only want to run when all three jobs have completed successfully. Where do I put that? The only way I can think of doing it, is start a timer that keeps checking until all three are true. I Wonder if there's an...