okhttputils2

  1. Argonc

    Android Question OkHttpUtils2 - POST with header

    How to do n B4A: curl -X POST -H "Content-Type: application/text" -d "you man" http://ec2-34-244-221-70.eu-west-1.compute.amazonaws.com:5000/ ? I try j.PostString ("http://ec2-34-244-221-70.eu-west-1.compute.amazonaws.com:5000/", "you man") but it needs a header. so I try with header j.Head...
  2. W

    Android Question OkHttpUtils2 and SSL-Problem (maybe TLS?) [SOLVED]

    Hi! I want to download a text-file from a webserver via https (unfortunally the server doesn't support http). I'm using the library: OkHttpUtils2 on Android 4.4.2 This is my code: Dim j As HttpJob j.Initialize("", Me) j.Download("https://services.swpc.noaa.gov/text/geoalert.txt") Wait For (j)...
  3. A

    Android Question Get item in string

    Hello, Can someone please send an example of how to get item from string with items? (I am using json with OkHttpUtils2) The string setting is : Dim name As List = root.Get("name") For Each colname As String In name Next (how to get for example item number 3 that equals to...
  4. A

    Android Question File not exist

    Hello, I tried to use OkHttpUtils2 to download a file from a link (trying to download file named "rec.zip") Dim d As HttpJob d.Initialize("", Me) d.Download(link) Wait For (d) JobDone(d As HttpJob) If d.Success Then If...
  5. A

    Android Question [solved] Json file password

    Hello, I tried to use OkHttpUtils2 with json, the file adress have a key/password to get to the data. I used j.password = but The Log result is: "ResponseError. Reason: Unauthorized, Response: {"message":"Need to provide a secret-key to READ private bins","success":false}" Sub...
  6. KMatle

    B4J Tutorial Updated MySQL & PHP example

    Before you start: You need some experience with php, Apache Servers, OkHttpUtils, Lists, Maps and JSON structures. This is an updated example of how to - communicate with a apache server via OKHttpUtils calling a php script - doing MySQL data requests (Insert, Update and Delete) using...
  7. TIMX

    Android Question Attempt to write to field 'boolean anywheresoftware.b4a.samples.httputils2.httpjob._success'

    Hi, Please I need some lights, I include the resumable subs to get register from remote database, but the problem persist. Exactly occurs when I click on Login from Main Activity to navigate to ModPrincipal and I click egain on return key an wait 30 seconds in Main Activity then exception...
  8. 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
  9. cesarcm

    Android Question "message": "Request must have \"Content-Type: application/json\" header"

    Hi all, Please, HELP ME! I am getting the error below using job.PostString(link, data) I am using B4A v8.00 and OkHttpUtils2 (v2.61) ResponseError. Reason: UNSUPPORTED MEDIA TYPE, Response: { "message": "Request must have \"Content-Type: application/json\" header" } Source-code: ...
  10. KMatle

    Android Tutorial [B4x]Data exchange (B4x, php, servers, .net and others)

    After some years I have developed several apps to communicate with other apps, servers and platforms. My goal was to have ONE standard solution without additional propriatary solutions which work only on platform a but not on b. So I've ended up with lists and maps converted from/to JSON...
  11. J

    Android Question Download File From Link

    Hi all. I'm having trouble downloading a file from a link (Google Drive and Dropbox shareable link) from my app. Code says Success but the file downloaded is corrupted and unusable. This is with OKHttpUtils2 j.Initialize("job", Me) j.Download(modMain.shareableLinkGD) 'or...
Top