Test::HTTPStatus - check an HTTP status
use Test::HTTPStatus tests => 2; use Apache::Constants qw(:http); http_ok( 'https://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
brian d foy, <bdfoy@cpan.org>
<bdfoy@cpan.org>
Maintained by Nigel Horne, <njh at bandsman.co.uk>
<njh at bandsman.co.uk>
You can find documentation for this module with the perldoc command.
perldoc Test::HTTPStatus
You can also look for information at:
MetaCPAN
https://metacpan.org/release/Test-HTTPStatus
RT: CPAN's request tracker
https://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-HTTPStatus
CPANTS
http://cpants.cpanauthors.org/dist/Test-HTTPStatus
CPAN Testers' Matrix
http://matrix.cpantesters.org/?dist=Test-HTTPStatus
CPAN Ratings
http://cpanratings.perl.org/d/Test-HTTPStatus
CPAN Testers Dependencies
http://deps.cpantesters.org/?module=Test::HTTPStatus
This program is released under the following licence: GPL2 Copyright © 2002-2019, brian d foy <bdfoy@cpan.org>. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.
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.