w3cls
Check a web page for dead links using the W3C Link Checker.
http://validator.w3.org/checklink?uri=$1&summary=$2[|s|ummary]&hide_redirects=$3[|hr|edirects]&hide_type=$4[|ht|ype=all]&no_accept_language=$5[|na|language]&recursive=$6[|r|ecursive]&depth=$7[|d|epth]&cookie=$8[|sc|ookie]&check=Check
The w3cls command provides access to the web interface for the W3C.org Link Checker. Links are validated and dead links on a web page or redirects are reported. By default the Link Checker will hide all redirects.
OPTIONS
-s SUMMARY_ONLY
("on")
-hr HIDE_REDIRECTS
("on")
-ht HIDE_TYPE
("all" or "dir")
-na NO_ACCEPT_LANGUAGE
("on")
-r RECURSIVE
("on")
-d RECURSIVE_DEPTH
("-1", "0", "1", "2", or "3"; "-1" is the default and "3" is the maximum.)
Note: Up to 150 links may be check recursively.
-sc SET_COOKIE
("set")
EXAMPLES
Example: w3cls
Result: Opens the W3C Markup Validation Service web interface at W3C.org.
Example: w3cls http://www.slashdot.org
Result: Validates the links found on the SlashDot.org web page.
Example: w3cls http://www.slashdot.org -s on
Result: Just shows a summary report of the links found on the SlashDot.
Example: w3cls http://www.slashdot.org -hr on -ht dir
Result: Validates the links on SlashDot, but hides the redirects for directories.
Example: w3cls http://www.slashdot.org -na on
Result: Does not send the No_Accept_Language header to validate links.
Example: w3cls http://www.slashdot.org -r on -d 2
Result: Checks linked documents recursively up to a depth of 2.
Example: w3cls http://www.slashdot.org -hr on -ht all -sc set
Result: Validates the links on SlashDot and sets a cookie to hide redirects.
SEE ALSO
http://validator.w3.org/docs/checklink.html
| Created: | 6 Sep, 2008 09:43:10 |
| Last Used: | 1 Nov, 2008 11:02:30 |
| Uses: | 3 |
| Author: | Paul Boren |
Report Problem