Problem with HttpClient and large data

GOINT

Member
Licensed User
Longtime User
Hello,

I am having a problem downloading large amounts of data using the HttpClient library. My application is calling a web service that performs a database query, which sometimes produces a large amount of data, and may take some time to respond (but it is not timing out, less than 20 seconds). My timeout is set to 60000 ms.

The HttpClient library seems to fail at random places, and does not get the entire piece of xml (I am connecting the input stream to the xml Sax parser).

When I "slow down" the parser (with a timer) to make it pull the data slowly it works, but it needs a fairly big delay in the timer, about 200-250 ms between data chunks.

Any ideas?

Thanks!
Joe
 

GOINT

Member
Licensed User
Longtime User
HttpUtils has the same problem

Hello,

HttpUtils has the exact same problem. Please check your own sample, it tries to download the Google home page and it does not get the complete page, only a portion.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…