Re: BUG: wget with option -O creates empty files even if the remote file does not exist
From: Eduardo M KALINOWSKI > wget http://www.somehost.com/nonexistant.html -O localfile.html > > then file "localfile.html" will always be created, and will have length > of zero even if the remote file does not exist. Because with "-O", Wget opens the output file before it does any network activity, and after it's done, it closes the file and leaves it there, regardless of its content (or lack of content). You could avoid "-O", and rename the file after the Wget command. You could keep the "-O", and check the status of the Wget command (and/or check the output file size), and delete the file if it's no good. (And probably many other things, as well.) If you look through "http://www.mail-archive.com/wget@sunsite.dk/";, you can find many people who think that "-O" should do something else, but (for now) it does what it does. Steven M. Schweda [EMAIL PROTECTED] 382 South Warwick Street(+1) 651-699-9818 Saint Paul MN 55105-2547
BUG: wget with option -O creates empty files even if the remote file does not exist
I'm using wget version 1.10.2. If a try to download a nonexistant file with a command like like this wget http://www.somehost.com/nonexistant.html and the file does not exist, wget reports a 404 error and no file is created. However, if I specify the file where to place the output, with a command like this wget http://www.somehost.com/nonexistant.html -O localfile.html then file "localfile.html" will always be created, and will have length of zero even if the remote file does not exist. -- I doubt, therefore I might be. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb
Re: Background image not uploaded by wget
Support for CSS has been on the wish list for some time. I don't think anyone is working on a patch right now. Frank Equipe web wrote: Hello, Here is another bug that would be nice to correct in Wget : some background images are not imported. For example take a look at this piece of HTML code : class="back-img" href="enseignement/"> The file "images/hp-enseignement.jpg" is not uploaded by Wget (although it should be !). This is legal HTML/CSS but the url() call is not parsed by Wget. Thanks if anyone has got time to check this out. Luc Goffinet Equipe Web - FUNDP Service Informatique Universitaire (SIU) 21 rue Grandgagnage, B-5000 Namur (Belgium) Tel : +32/81/72.50.38 Fax : +32/81/72.50.23