Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

HttpGet.read() not returning entire content

Moderators: kris

Posted: 05/20/08 10:35:51

I'm reading a page, but I only get a part of the content. Sometimes 1209 characters, other times 1069 characters.

getResponseHeaders.getInt(HttpHeader.ContentLength, uint.max) returns the correct size of 13807.

Any idea why the buffer isn't filled up?

Author Message

Posted: 05/20/08 10:37:20

I'm using dmd 1.028 and tango rev. 3513

Posted: 05/22/08 01:10:13

possibly because the server closed the socket prematurely? There's many possible reasons