Test::HTTPStatus - check an HTTP status
use Test::HTTPStatus tests => 2; use Apache::Constants qw(:http); http_ok( 'http://www.perl.org', HTTP_OK ); http_ok( $url, $status );
Check the HTTP status for a resource.
Print the ok message if the URL's HTTP status matches the specified HTTP_STATUS. If you don't specify a status, it assumes you mean HTTP_OK (from Apache::Constants).
Apache::Constants, HTTP::SimpleLinkChecker
This source is part of a SourceForge project which always has the latest sources in CVS, as well as all of the previous releases.
http://sourceforge.net/projects/brian-d-foy/
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 (c) 2002-2007 brian d foy. 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 Test::HTTPStatus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::HTTPStatus
CPAN shell
perl -MCPAN -e shell install Test::HTTPStatus
For more information on module installation, please visit the detailed CPAN module installation guide.