Fetch returning page html despite error

cpm18
Posts: 39
Joined: Mon Apr 13, 2009 3:21 pm

Fetch returning page html despite error

Post by cpm18 »

I am getting some unexpected results while fetching a page. The page in question is http://www.theenvironmentsite.org/forum ... world.html.

The problem I am having is after fetching the page, I get back the correct html but it also returns a value of 'Server Error' from <urlinfo "errmsg">. Thus my script does nothing with the html it returned since it thinks there is a problem. The thing that I am confused about it why is a server error returned yet the page fetched correctly?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Fetch returning page html despite error

Post by mark »

What's the errnum? httpcode?
Were there any putmsg's during the fetch? What did they say?
User avatar
John
Site Admin
Posts: 2623
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH

Fetch returning page html despite error

Post by John »

It looks like the server does return an HTTP 500 code with "Internal Server Error", but still returns the page. It may be some browser detection code crashing and generating the HTTP status code.
John Turnbull
Thunderstone Software
User avatar
John
Site Admin
Posts: 2623
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH

Fetch returning page html despite error

Post by John »

Actually just tried it in the browser and that also gets a "500 Internal Server Error" returned, but shows the HTML, so I'm not sure if the server has a misconfiguration, or is doing it intentionally to throw off crawlers.
John Turnbull
Thunderstone Software