http

  1. D

    Android Question break jobdone

    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...
  2. A

    Android Question Problem sending text to server in trage sdk higher than 26

    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...
  3. Star-Dust

    B4J Tutorial [B4X] Proxy Server Socks 4 and Proxy Http (Source Code)

    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...
  4. KMatle

    B4R Tutorial ESP32: Download huge file from a server and save it

    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...
  5. Star-Dust

    B4J Library [B4X] xHttpServer (Http Server + jQuery)

    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...
  6. M

    Android Question "Heavy work" and freezing - multithread?

    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...
  7. Star-Dust

    B4i Library SD: iHttpServer (beta)

    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...
  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. N

    Android Question Client server application, tcp/ip vs http

    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...
  10. C

    Android Question JSON Post, quotes in wrong place

    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...
  11. carlos7000

    Android Question Simple code to receive json string

    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...
  12. I

    Android Question REST APIs format

    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.basic4ppc.com/print.php", _ Array As String("key1", "value1", "key1", "value2")) which will...
  13. D

    Android Question String comparison

    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...
  14. victormedranop

    Android Question Does B4A have SSE (Server Send Event) support ?

    Hi, just wondering if b4a have full support over SSE? Thanks, Victor
  15. trejocode

    Android Question [CLOSE]B4XTable ERROR when SetData

    Hi, I have a strange error when I try to feed the table, I simply get data from an API and insert it in a table but it returns an error that I have no idea what it means, since I do not use SQLite. Error occurred on line: 601 (B4XTable) android.database.sqlite.SQLiteException: near ")": syntax...
  16. Multiverse app

    Android Question PostString Coinbase API error

    I've been trying to integrate the Coinbase API in my app for some time now. I was able to login and get access key with OAuth using webview. I am only having problems Sending money doc: curl https://api.coinbase.com/v2/accounts/2bbf394c-193b-5b2a-9155-3b4732659ede/transactions / -X POST \...
  17. C

    Android Question wait for Jobdone synchronous

    I am using the ZXing library to scan a barcode which returns in the zx1_scan_result () routine. I currently call a subroutine in my activity that displays the scan result in a text field. However, what I need to accomplish is to take the scantext value, launch an httpjob to do an SQL query and...
  18. Pedro Caldeira

    B4J Question HTTP response Headers in Non Ui applications

    How can I get the headers from the response in a non-ui application ? I recall that Erel provided a code to replace in the Httputils source to expose the headers, but how can i do it in non UI app ? code provided by Erel Sub hc_ResponseSuccess (Response As HttpResponse, TaskId As Int) Dim...
  19. Pedro Caldeira

    B4J Question Http poststring with headers

    I am trying to send a string with a post method and some headers. Non Ui application code below Dim ListaBill As List ListaBill.Initialize ListaBill.Add("<?xml version='1.0'?>") ListaBill.Add("<methodCall>") ListaBill.Add("<methodName>RequestServer.RequestBill</methodName>")...
Top