Humberto Active Member Licensed User Longtime User Aug 9, 2017 #1 There stil is a difference between Android and IOS request in both I send to a ESP8266 module B4X: Job.Initialize ( "", Me ) xUrl = "http://192.168.4.1/set/eeprom1" Job.Download ( xUrl) Job.GetRequest.SetHeader("Content-Type", "text/html") Job.GetRequest.SetHeader("Connection", "close") Job.GetRequest.Timeout = 10000 Wait For (Job) JobDone(Job As HttpJob) In Android I receive "Connection: close" In IOS "Connection: keep-alive" Thanks
There stil is a difference between Android and IOS request in both I send to a ESP8266 module B4X: Job.Initialize ( "", Me ) xUrl = "http://192.168.4.1/set/eeprom1" Job.Download ( xUrl) Job.GetRequest.SetHeader("Content-Type", "text/html") Job.GetRequest.SetHeader("Connection", "close") Job.GetRequest.Timeout = 10000 Wait For (Job) JobDone(Job As HttpJob) In Android I receive "Connection: close" In IOS "Connection: keep-alive" Thanks
Erel B4X founder Staff member Licensed User Longtime User Aug 10, 2017 #2 The header is later modified by the native SDK. I don't think that you can change this behavior. Why aren't you using the simpler and much more powerful solution: https://www.b4x.com/android/forum/threads/esp-configurator-based-on-b4rserializator.81452/#content ? Upvote 0
The header is later modified by the native SDK. I don't think that you can change this behavior. Why aren't you using the simpler and much more powerful solution: https://www.b4x.com/android/forum/threads/esp-configurator-based-on-b4rserializator.81452/#content ?