$ HEAD http://www.google.com/ # and $ perl -MLWP::Simple -le 'print head "http://www.google.com" ? "OK" : "NO"'