http_status - check the HTTP status of a URL
% http_status URL [URL ...]
http_status gets the HTTP status of a URL as returned by the server. It actually works with more than HTTP links since it uses the LWP Perl module which treats all URLs the same. This works too:
LWP
% perl script/http_status file:///Users/brian/.login
If you have Term::ANSIColor, it will color the output. If you have HTML::SimpleLinkExtor, it will parse the HTML of the resource and then check all of those links.
Term::ANSIColor
HTML::SimpleLinkExtor
This source is in Github:
http://github.com/briandfoy/http-simplelinkchecker
If, for some reason, I disappear from the world, one of the other members of the project can shepherd this module appropriately.
brian d foy, <bdfoy@cpan.org>
<bdfoy@cpan.org>
Copyright © 2007-2016, brian d foy <bdfoy@cpan.org>. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTTP::SimpleLinkChecker, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::SimpleLinkChecker
CPAN shell
perl -MCPAN -e shell install HTTP::SimpleLinkChecker
For more information on module installation, please visit the detailed CPAN module installation guide.