fetch error

Post Reply
sourceuno
Posts: 225
Joined: Mon Apr 09, 2001 3:58 pm

fetch error

Post by sourceuno »

User avatar
mark
Site Admin
Posts: 5515
Joined: Tue Apr 25, 2000 6:56 pm

fetch error

Post by mark »

The webserver said it was going to return 17443 bytes for the given page. But it returned 17447 bytes. <fetch> truncated the page to the value given by the webserver's "Content-Length" header.
sourceuno
Posts: 225
Joined: Mon Apr 09, 2001 3:58 pm

fetch error

Post by sourceuno »

Why does <fetch> truncate the page? Is there any way that I can fetch this page without an error?
bart
Posts: 251
Joined: Wed Apr 26, 2000 12:42 am

fetch error

Post by bart »

Fetch didn't truncate the page. The webserver did it by not doing its math correctly.

Look at the last 4 bytes of the page in question to see if they're real.
sourceuno
Posts: 225
Joined: Mon Apr 09, 2001 3:58 pm

fetch error

Post by sourceuno »

How can I tell if the last 4 bytes are real? Does this mean that I will not be able to fetch this page because the webserver is returning the wrong header information? I am able to view this page through my browser. Here's the link: http://pub44.ezboard.com/bcamaroclubkansascity
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

fetch error

Post by Kai »

You could telnet to the web server port and do a manual GET, or use geturl (a util program included with Texis, in the bin directory; usage: geturl http://somesite/) to fetch the page, and examine the last 4 bytes. In this case, it's a double newline, which won't affect the formatted text.

However, in cases like this, there's no way to know if the web server is adding extraneous data to the page, or not computing the page size correctly, so the extra data may or may not be valid. <fetch> still returns the page, it's just warning that the data may be truncated because the returned information was inconsistent.
Post Reply