Hello!
I found out, that the -r option of wget prevents any other return code
than 0. This is bad in case of invalid host name or path.
Here an example with an invalid host:
--snip--
markus@phoenix:~ wget http://host.doesnotexist.there ; echo Result: $?
--19:22:43--
ScanMail for Microsoft Exchange has taken action on the message, please
refer to the contents of this message for further details.
Sender = [EMAIL PROTECTED]
Recipient(s) = [EMAIL PROTECTED];
Subject = MP3.com, Inc. All rights reserved.
Scanning Time = 05/09/2002 21:21:56
Engine/Pattern =
I work with many web servers that are load balanced. I would like to be
able to test each web server individually by hitting the IP directly.
Problem is that many of my web servers are very particular about what they
see in the Host: header line because of their virtual hosts setting or
plugins