HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: infinite loop at downloading a webpage
Author: Leto
Date: 08/18/2003 02:07
 
> Hmm, I change within the IIS the custom Errors property of 
> HTTP Error 404 from type 'file' to 'url' and send it to 
one 
> of my ASP pages '/error/eshow.asp?error_id=16&'. This is a 
> page that has the layout (including graphics) of the site 
> and it's working without any problem. I'm not sure whether 
> this creates a 200 page or still keeps the 404 

For one of our IIS websites we use a custom 404 error page 
pointing to '/404.asp'

While HTTracking the site one day, I was very surprised to 
discover that IIS was actually returning a 200 response for 
this error page!

A very easy solution to this is to enforce the ASP to 
respond correctly as 404, but adding the following above any 
HTML output:
<%
Response.Status = "404 Not Found"
%>

Also, you can check what response the error page is giving.  
Create a test HTTrack project and set the start URL directly 
to your error page (/error/eshow.asp?error_id=16) or a 
non-existant file (/doesNotExist.htm), run the mirror, then 
look at hts-log.txt

12:00:00	Error: 	"File Not Found" (404) at link www.
foo.com.au/doesNotExist.htm (from primary/primary)

and you will see the response code there.
 
Reply Create subthread


All articles

Subject Author Date
infinite loop at downloading a webpage

08/15/2003 11:12
Re: infinite loop at downloading a webpage

08/15/2003 11:39
Re: infinite loop at downloading a webpage

08/15/2003 12:14
Re: infinite loop at downloading a webpage

08/15/2003 13:04
Re: infinite loop at downloading a webpage

08/15/2003 13:09
Re: infinite loop at downloading a webpage

08/15/2003 13:30
Re: infinite loop at downloading a webpage

08/15/2003 13:45
Re: infinite loop at downloading a webpage

08/18/2003 02:07




b

Created with FORUM 2.0.11