Apache-AuthDigest
view release on metacpan or search on metacpan
use strict;
use warnings FATAL => 'all';
use Apache::Test;
use Apache::TestRequest;
plan tests => 4, have_lwp;
# most of this is taken right from
# perl-framework/t/http11/basicauth.t
#
# many kudos to LWP for supporting Digest authentication natively!
my $url = '/protected/index.html';
my $response = GET $url;
ok $response->code == 401;
ok $response->header('WWW-Authenticate') =~ m/Digest realm="cookbook"/;
( run in 1.514 second using v1.01-cache-2.11-cpan-df04353d9ac )