Ohanian Active Member Licensed User Longtime User Dec 28, 2016 #1 Hi, I'm trying to download data from a web service, the link works in chrome or any other browser, but when i download the same link with httpjob it ends up with this error message : Code: java.io.EOFException: source exhausted prematurely i have a server side function (VB.Net) to download the data, had some error but found a solution by adding this to the web.config Code: <system.net> <settings> <httpWebRequest useUnsafeHeaderParsing="true" /> </settings> </system.net> here's the reference url : Code: http://api.namaa.ir/v1/geo/reverse/35.1,51.2 any solution for B4A part?
Hi, I'm trying to download data from a web service, the link works in chrome or any other browser, but when i download the same link with httpjob it ends up with this error message : Code: java.io.EOFException: source exhausted prematurely i have a server side function (VB.Net) to download the data, had some error but found a solution by adding this to the web.config Code: <system.net> <settings> <httpWebRequest useUnsafeHeaderParsing="true" /> </settings> </system.net> here's the reference url : Code: http://api.namaa.ir/v1/geo/reverse/35.1,51.2 any solution for B4A part?
Erel B4X founder Staff member Licensed User Longtime User Dec 28, 2016 #2 Have you tried it with HttpUtils2 and OkHttpUtils2? Upvote 0
Ohanian Active Member Licensed User Longtime User Dec 28, 2016 #3 Hi, yes, and got the same problem with this error message : Code: org.apache.http.client.ClientProtocolException Upvote 0
Hi, yes, and got the same problem with this error message : Code: org.apache.http.client.ClientProtocolException
Erel B4X founder Staff member Licensed User Longtime User Dec 28, 2016 #4 It doesn't work in Firefox as well. The server is not implemented properly. You can try to use a regular Socket to access this link. See this B4R example: https://www.b4x.com/android/forum/threads/downloading-a-web-page-with-esp8266.70570/#content Upvote 0
It doesn't work in Firefox as well. The server is not implemented properly. You can try to use a regular Socket to access this link. See this B4R example: https://www.b4x.com/android/forum/threads/downloading-a-web-page-with-esp8266.70570/#content