HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: preventing 404 overwrites on update
Author: Xavier Roche
Date: 03/25/2002 23:17
 
> OK, i've tried to follow the code in this area but 
is 
> isn't easy  :)  
> ...can you tell me: 
> Is it guarenteed that the 'transfer-status' callback 
> (wrapper) is ALWAYS called BEFORE the original file 
is 
> overwritten with the 404 message file? If i can rely 

NO - this is the countrary: the back_finalize() 
function ("transfer-status" log) is called when the 
engine has finished a transfer and wants to finalize 
(store in cache, close pending connection) it.

Oh, one tip: activate the 
'Options'/'Build'/'No error pages'
AND
'Option'/'Option'/'Build'/'Do Not Purge Old Files'
this may do the trick, and keep files. (the 'No error 
pages' should force the engine to NEVER erase local 
files with error pages, and the 'Do not purge' option 
should prevent it from erasing)

If not, try to hack the filecreate() function in 
htscore.c, but this might NOT be sufficient..
 
Reply Create subthread


All articles

Subject Author Date
preventing 404 overwrites on update

03/25/2002 21:35
Re: preventing 404 overwrites on update

03/25/2002 22:18
Re: preventing 404 overwrites on update

03/25/2002 23:04
Re: preventing 404 overwrites on update

03/25/2002 23:17
Re: preventing 404 overwrites on update

03/26/2002 00:09




b

Created with FORUM 2.0.11