NetTalk Central

Author Topic: NetWebClient not Fetching the web page completly  (Read 11654 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
NetWebClient not Fetching the web page completly
« 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]
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NetWebClient not Fetching the web page completly
« Reply #1 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

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: NetWebClient not Fetching the web page completly
« Reply #2 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
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NetWebClient not Fetching the web page completly
« Reply #3 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

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: NetWebClient not Fetching the web page completly
« Reply #4 on: November 04, 2011, 06:41:47 AM »
See attached images Good and Bad

[attachment deleted by admin]
-----------
Regards
Alberto