B4A Code Snippet Set HTTP Request Header with OkHttpUtils2 - Erel    Sep 17, 2018   (11 reactions)   tags: http Description: The following code allows you to set the request headers before the request is sent. This is useful for example with sites that block requests without a User-Agent header. This code depends on HttpUtils2 and Http libraries: Dim j As HttpJob j.Initialize("job name", Me) j.... The content type header should be set with SetContentType. Tags: http headers, httputils2, user agent....SetHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox... B4J Question Set HTTP Request Header with HttpUtils2 - JMB    Apr 12, 2017 of this post.
Could I ask for a more complete example of how to set the headers for Basic HTTP... HTTP Authentication and am a little bit confused as to how I would call the service in... B4A Question httputils2 and headers - drgottjr    Jan 16, 2013 can i get the http headers from the server with this module?
if i'm expecting a bitmap... string of bytes.)
then i thought, if i saw the server's "content-type" header... B4A Question Http Response headers with HttpUtils2 Library - Erel (first post)    Aug 13, 2014 No. However you can easily compile your own version of HttpUtils2 if you like.... B4A Question HttpUtils2 response headers - Erel (first post)    Dec 20, 2013 The class and service are not older. They are the same as the library. The library is just a compilation of these two modules.
You will need to modify the service and extract the headers in hc_ResponseSuccess sub.... B4A Question Get Headers using httputils2 - Erel (first post)    Sep 19, 2013 You will need to modify HttpUtils2Service code. The headers are accessible in hc_ResponseSuccess. You can get the required information and add it to the Job's tag.... B4A Tutorial Download huge files with HttpUtils2 - Erel    Jul 25, 2021   (18 reactions)   tags: download, erel, download with progress Better to use: https://www.b4x.com/android/forum/threads/simple-progress-http-download.127214/#post-796463 The attached project includes a slightly modified version of HttpUtils2 and a new service... are required: OkHttp StringUtils Phone (required in order to acquire a partial lock during the download) RandomAccessFile As this is a modified version of OkHttpUtils2 you should not reference OkHttpUtils2... size. http://www.b4x.com/basic4android/images/SS-2013-06-13_17.34.35.png It is very simple to use... B4A Tutorial HttpUtils2 - Web services are now even simpler - Erel    Feb 28, 2016   (18 reactions)   tags: b4j, Http, Erel, b4a HttpUtils2 was replaced with OkHttpUtils2: https://www.b4x.com/android/forum/threads/okhttp-replaces-the-http-library.54723/
Both libraries are included in the IDE.
HttpUtils2 is a small framework that helps with communicating with web services (Http servers).
HttpUtils2 is an improved version of HttpUtils.
The advantages of HttpUtils2 over HttpUtils are:
Any number of jobs can run... B4R Library [module] rHttpUtils2 - Http Client - Erel    Feb 23, 2021   (10 reactions) -Type header HttpJob.Initialize("Example2") 'add headers before calling Post or Download (this is different than the standard HttpUtils2 library). HttpJob.AddHeader...The HttpJob module implements an http client. It is a simplified version of B4X HttpUtils2... name. 2. Optionally add headers with HttpJob.AddHeader. 3. Call Download to send a GET request or Post to send a POST request. 4. Handle the JobDone event. Notes 1. rHttpUtils2 doesn't support... B4A Question HttpUtils2Service starts at a random time depending on devices - vecino    Aug 27, 2023 this: StartReceiver(HttpUtils2Service) Depending on the device it may start instantly, or I may start in... the meantime nothing that uses "http" works. Only when "HttpUtils2Service" is already started then any http query works fine. Tests have been done on many devices, and the problem... "HttpUtils2Service" right away, as I explained before. If you try to do, for example, something like... "HttpUtils2Service"? Here a log of a device: *** mainpage: B4XPage_Created TempFolder= *** mainpage... Page: 1   2   3   4   5   6   7   |