BUG: wget with option -O creates empty files even if the remote file does not exist

2006-06-01 Thread Eduardo M KALINOWSKI
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,

Re: BUG: wget with option -O creates empty files even if the remote file does not exist

2006-06-01 Thread Steven M. Schweda
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