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)...
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...
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...
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...
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...
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...
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
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:
...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.