Stefan Melbinger ha scritto:
Hi,
As you might have noticed I was trying to use wget as a tool to check
for dead links on big websites. The combination of -r and --spider is
working in the new alpha version, however wget is still downloading ALL
files (no matter if they are parseable for further links or not),
instead of just getting the status response for files other than
text/html or application/xhtml+xml.
I don't think that this makes very much sense; the files are deleted
anyway and downloading a 300MB video is not useful if you just want to
check links and see whether the video is there at all.
Could somebody suggest a quick hack to disable the downloading of
non-parseable documents? I think it must be somewhere in the area of
http.c, somewhere around gethttp() or maybe http_loop() - unfortunately,
my knowledge of C and my knowledge of this project weren't enough to get
any satisfying result.
you're absolutely right, stefan. i've just started working on it.
--
Aequam memento rebus in arduis servare mentem...
Mauro Tortonesi http://www.tortonesi.com
University of Ferrara - Dept. of Eng. http://www.ing.unife.it
GNU Wget - HTTP/FTP file retrieval tool http://www.gnu.org/software/wget
Deep Space 6 - IPv6 for Linux http://www.deepspace6.net
Ferrara Linux User Group http://www.ferrara.linux.it