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,
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