httpjob

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

    Android Question HttpJob headers

    Hello, I have searched the forum but haven't found anything related. I would like to set specific payload encoding. what is the default encoding used when there is a payload? Also, how can I get headers? Dim j As HttpJob j.Initialize("", Me) j.PostString(URL, "&id=3") ''get headers...
  3. HassanProgrammer

    Android Question Secure connection to servers and hosts

    Hello, How did Telegram, WhatsApp, YouTube, etc. establish their security? A hacker can decompile my program and gain access to my links or IP server and abuse it. For example, send thousands of requests to my server and host in a row. Or enter my api link in the browser and see or change user...
  4. HassanProgrammer

    Android Question Download the activity and start it

    I want to upload an activity on the server and download it from the server in the main activity and then start it. How do I do that?
  5. H

    Android Question What is the effect of httpJob if placed inside the function?

    hello, I understand that an httpJob is a resumablesub which means other functions below it will execute even it is not finished except when placed inside if job.Success statement. But, what is the effect of httpJob if placed inside the function? Is there a difference if the function returns a...
  6. H

    Android Question How to control the flow of the HttpJob?

    Hello, With HttpJob, we write code like this: Dim j As HttpJob ... Wait For (j) JobDone(j As HttpJob) If j.Success Then foo() else ... end if bar() This will run the bar() even the foo() is not finished. Is there a way to let the foo() finished before the bar() begins? Thanks!
  7. W

    Android Code Snippet Conversion from CUrl to B4A

    It is quite convenient to upload images to public cloud server and share the image link to other people rather than share the real image files directly! The following code snippets showed how to upload and search images by CUrl command (provided by: https://apidocs.imgur.com/) and by B4A syntax...
  8. Abdull Cadre

    Share My Creation Weather App

    Building a Weather App One of my recent projects required me to build a weather app that would work with an API of my choice. This was my first introduction to working with a weather API, so I knew there was going to be a steep learning curve, but I was excited about the chance to finally...
  9. D

    B4J Question Error on request inside a server Handler (java.lang.InterruptedException)

    Hello! I'm gettin this error but i have no clue of what's happening because it works good for days before happen. I suspect that is caused by a request that I make inside a handler but I'm not sure. java.lang.RuntimeException: java.lang.InterruptedException at...
  10. J

    Android Question HttpJob and Sending Message to waiting Queue ...

    Hello, We have a problem with the HttpJob: The JobDone never runs, and the log contains the following message: "sending message to waiting queue of uninitialized activity (submitjob)" my code : Dim job As HttpJob job.Initialize("", Me) job.Download("https://www.google.com") '...
  11. I

    iOS Question Extract HTTP Response on Error

    Hello There I am using HTTPUtils ( https://www.b4x.com/android/forum/threads/46565/#content ) and so far all is good until I tried to extract the response block returned OnError by the server ( I was unable to find a way to do it unless I am missing something). Sub hc_ResponseError (Response...
  12. 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...
  13. 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...
  14. A

    Android Question connect to mobile connection for HTTPJob while connected to ESP8266

    I replied to an exisiting thread but knowing this forum, it is better to start a new thread. I have an ESP8266 connected to the Wifi port of the telephone. This ESP8266 does not have an internet connection... (we are in the field with the application). The android app is gathering information...
  15. B

    Android Question Use Httpjob to build your own B4A library

    Hi, I want to create a library using the standard class where a file should be downloaded, so I decide to use httpjob in my library, but I do not know how to initialize httpjob because by giving Me the target input in the class, the force program will close. Give. Please help. Thankful
  16. Marcos Alves

    Android Question HttpJob and Raw Data

    Hello community, I have a doubt here... Using httpJob I know how to send a POST using parameters map (postMultiPart) and even to send a file. But now I have a post request listed in PostMan constructed in this way: Link...
  17. M

    Android Question HttpJob

    Sorry I'm an absolute beginner in b4a I do not know how to find additional libraries and particularly the HttpJob one Thanks
  18. S

    Android Code Snippet Upload a file to your server with HttpJob and php(included)

    4-25-2020 Pick a SINGLE File from Dialog box, Then upload it To a server on LAN Or Internet I wrote this B4A To be very small, simple, & easy to understand on a beginners level In Files Is the PHP script To handle single File upload And save As original filename php creates And appends a...
  19. saeed10051

    Android Question Problem regarding running php script

    Hi, i am trying to run a php script by using following code Dim j As HttpJob j.Initialize("", Me) 'j.PostString("http://saeedhassan.atwebpages.com/r.php", query) j.Download("http://saeedhassan.atwebpages.com/r.php") Wait For (j) jobdone (j As HttpJob) If j.Success Then...
  20. saeed10051

    Android Question How to get an array using okhttputils2

    I am using following php script and it is returning an array to me. How can i get the data out of this array as i am using j as httpjob, but httpjob does not have a get array type of method. $result = $conn->query("SELECT * FROM menuitems"); if ($result->num_rows > 0) { $rows = array()...
Top