Android Question java.io.EOFException: source exhausted prematurely

Ohanian

Active Member
Licensed User
Longtime User
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 :

B4X:
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

B4X:
  <system.net>
    <settings>
      <httpWebRequest useUnsafeHeaderParsing="true" />
    </settings>
  </system.net>

here's the reference url :
B4X:
http://api.namaa.ir/v1/geo/reverse/35.1,51.2

any solution for B4A part?
 

Ohanian

Active Member
Licensed User
Longtime User
Hi,

yes, and got the same problem with this error message :
B4X:
org.apache.http.client.ClientProtocolException
 
Upvote 0
Top