okhttp

  1. 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 ...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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
  8. 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.
  9. 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...
Top