Section: User Commands (1)
Updated: Nov 1999Index
httpcheck - check a web page using a http HEAD request
[-ehE] [url1 url2...]
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 absolutehttp links. httpcheck
does checks for links of protocol type http. It can not check https orftp.
- Prints a little help/usage information.
- 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.
- 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 environmentvariables HTTP_PROXY and NO_PROXY or http_proxy and no_proxy if you wouldlike to use a proxy server. The upper case versions take precedenceover the lower case ones. To use the proxy server www-proxy on port8080 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
Check a single link:httpcheck http://www.linux.de/
Post process the output of blnkcheck:
blnkcheck -a *.html | httpcheck -E
no known bugs
Guido Socher (guido.socherAATTlinuxfocus.org)
- SEE ALSO
This document was created byman2html,using the manual pages.