NetTalk Central

The Rest Of NetTalk => The Rest - Ask For Help => Topic started by: Alberto on November 04, 2011, 04:52:38 AM

Title: NetWebClient not Fetching the web page completly
Post by: Alberto on November 04, 2011, 04:52:38 AM
Hi,
I´ve been reading web pages with NetWebClient for a long time, now suddenly, it does nont want to read the full page.
Please see atached images.
Image 1 and 2 : look at the expected bytes and the difference between Content-Length.
The efect is that de NetWebClient reads only the amount of expected bytes.
In image 3 all is OK
The pages readed are all from the same domain.
How can I fix it?
How can I debug it?
Thanks
Alberto


[attachment deleted by admin]
Title: Re: NetWebClient not Fetching the web page completly
Post by: Bruce on November 04, 2011, 05:22:40 AM
where is the "Expected Bytes" text coming from?
Can you duplicate this effect in an example?

cheers
Bruce
Title: Re: NetWebClient not Fetching the web page completly
Post by: Alberto on November 04, 2011, 06:03:53 AM
In the Process embed:

if self.busy = 1 and self.OpenFlag = 1
  if self._PageContentLen > 0
    Expected = (self._PageContentLen + self.HeaderLen) & ' expected bytes ...'
  else
    Expected = '(Expected size unknown)'
  end
end

If I read the same url with an NT example it is readed OK, I cant beleive it!

What can I look for?

Thanks
Title: Re: NetWebClient not Fetching the web page completly
Post by: Bruce on November 04, 2011, 06:20:54 AM
what are the values in self._PageContentLen and self.HeaderLen ?
ie see what they are _before_ adding them together.

cheers
Bruce
Title: Re: NetWebClient not Fetching the web page completly
Post by: Alberto on November 04, 2011, 06:41:47 AM
See attached images Good and Bad

[attachment deleted by admin]