Hello everyone,
I am able to connect to the ChatGPT API without any issues when the `Stream` argument is set to `False` and I use the HttpJob. However, when I tried connecting by enabling the `Stream` argument, I encountered problems with the OkHttpRequest.
I found a sample MPEG Stream by Erel...
We would like some clarification on the use of relative timeouts used in OkHttp.
https://square.github.io/okhttp/3.x/okhttp/
The client has the following 4 settable timeouts:
a. connectTimeout (default 10 seconds)
b. writeTimeout (default 10 seconds)
c. readTimeout (default 10 seconds)
d...
I have a URL to send request post and else...
But i want to nobody find it :/
So i think its better to encode it and when it want to send request change to decode like I put my apilink as B64 and when it want to send request change to manually
Hi to all, i have made a App based on httpUtils, i pick my entry with php page and mysql_maria db, all work fine, now i decie to use private page with .htpasswd ah .htaccess and here come the problem.
If i use this type of link http(s)/username:passwod@website.something in the browser (i have...
I've used the code in https://www.b4x.com/android/forum/threads/solved-download-files-from-server-with-progress.126797/post-793290 post #1 to do a https download with progress.
I've set the folder to copy to as File.DirInternal. When I Compile&Run the app, the file is shown in the Log as copied...
I asked this question on B4J by accident. It referred to Line 10 in code (from Feb 2, 2021 post of https://www.b4x.com/android/forum/threads/simple-progress-http-download.127214/#post-796463) when compiling gives "Unknown member: taskidtojob" error:
Dim TaskToJob As Map =...
Hello, everyone
I want to know if there is a way to break jobdone from another function. At my jobdone the waiting panel is called (just download process) and there is a button when I click on which I need to stop executing jobdone, can this be done?)
I use HttpJob
I hope I made myself clear...
Hi,
when I put the trage sdk from the manifest to more than 26, I can not send anything to the server via httpjob with the poststring.
I also added the following code to the manifest but it did not work:
SetApplicationAttribute(android:usesCleartextTraffic, "true")
What is the solution to this...
Many years ago I needed to sniff a connection and I didn't have a free sniffer available and I didn't know how to create one .... So after a long reflection I decided to create a Proxy Server in order to direct all the output of my pc to the server and sniff traffic.
It was my first proxy server...
This example downloads a file from a server folder (here I use a folder in htdocs on my apache server) and saves it to a file on the file system. Tested with 700KB files. Set headers (browse the www how to set up headers or credentials). Note that the ESP32 filesystem is quite slow. Downloading...
It is a personal project of mine that I started as a hobby on B4i and it has become an interesting project, so that I have modified it to be multiplatform.
It is an http server, which allows a browser to navigate on html pages stored on the device. In addition, dynamic pages can also be...
Hi everyone, I've an app that need to download an huge dataset.
We are talking about making a http request the return a json of 8000 rows, that need to be stored in a local SQL DB in the device.
Now.. the problem is the following: downloading and storing all the rows in the DB takes a while...
I started developing a version of the HttpServer Library for iOs. It is still a beta version and not complete, but already functional. You can start using it to test it. Includes WebSocket and QueryElement implementation
Digest Auth will be added in the future. I have arrived at a first version...
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...
Hi this is a technical cuestion more than a specific cuestion of the language.. Í need to implement an application for android with connection
to a server made in visual basic that it will also be implemented by me. The interechange of data between andoid app and server will be in xml format.
I...
Hi everyone;
I'm having a rough time posting a particular JSON object. The JSONParser works perfectly, but when the resulting map is posted, the quotes for the array type and JSON type end up in the wrong place, breaking the object.
Sub btnSend_Click...
Hi.
I am looking for an old code, because the program must run on a device with android 5, that allows me to simply receive a json text. For this reason I use the Http library instead of the okhttputils2.
I tried using the OkhttpUtils2 library, but a handshake ssl error appears. that despite...
Hi Guys
I have been using httputil for a long time, and with every thing we have done so far we are building the calls using something similar to the code below
job1.Download2("http://www.b4x.com/print.php", _
Array As String("key1", "value1", "key1", "value2"))
which will output...
Hi, Guys
I have a problem with string comparison, the line
IF fcmToken = webFcmToken then always fails (see code below).
I have viewed tokens with in debug an they appear identical. Also tried .trim and even .toupper but still failed the comparison.
Also tried fcmToken.compare(webFcmToken) and...