httpcheck

Langue: en

Version: Nov 1999 (mandriva - 01/05/08)

Section: 1 (Commandes utilisateur)

NAME

httpcheck - check a web page using a http HEAD request

SYNOPSIS

httpcheck [-ehE] [url1 url2...]

DESCRIPTION

httpcheck issues a http HEAD request for a given url to see if the web-page exists. With no url specified on the command line httpcheck expects on stdin input lines in the same format as produced by 'blnkcheck -a'. httpcheck is basically a post-processor for blnkcheck to verify the absolute http links. httpcheck does checks for links of protocol type http. It can not check https or ftp.

OPTIONS

-h
Prints a little help/usage information.
-e
Print only results when an error occured. An error is any thing other than a http result code of 200 (OK), 301 (Moved Permanently) or 302 (Moved Temporarily). This option supresses also messages about links that can not be checked because they are not of protocol type http.
-E
Like -e but prints dots on the screen for every url that is checked.

httpcheck can handle requests to proxy servers. You may set the environment variables HTTP_PROXY and NO_PROXY or http_proxy and no_proxy if you would like to use a proxy server. The upper case versions take precedence over the lower case ones. To use the proxy server www-proxy on port 8080 you must set the http_proxy variable as follows:
For sh/bash: export http_proxy=http://www-proxy:8080
For csh/tcsh: setenv http_proxy http://www-proxy:8080
The no_proxy variable must hold a comma or space seperated list of servers or domains for which a direct connection should be made.

httpcheck is written in perl. It expects perl 5.003 or higher in /usr/bin/perl

EXAMPLE

Check a single link:
httpcheck http://www.linux.de/

Post process the output of blnkcheck:
blnkcheck -a *.html | httpcheck -E

BUGS

no known bugs

AUTHOR

Guido Socher (guido.socher@linuxfocus.org)

SEE ALSO

hrefgrep(1), srcgrep(1), blnkcheck(1)