8 ###############################################################################
10 my $wholefile = "You're all authenticated.\n";
12 # code, msg, headers, content
14 '/needs-auth.txt' => {
15 auth_method => 'Basic',
16 user => 'fiddle-dee-dee',
19 msg => "You want fries with that?",
21 "Content-type" => "text/plain",
23 content => $wholefile,
27 my $cmdline = $WgetTest::WGETPATH . " --user=fiddle-dee-dee --password=Dodgson"
28 . " http://localhost:8080/needs-auth.txt";
30 my $expected_error_code = 0;
32 my %expected_downloaded_files = (
34 content => $wholefile,
38 ###############################################################################
40 my $the_test = HTTPTest->new (name => "Test-auth-basic",
43 errcode => $expected_error_code,
44 output => \%expected_downloaded_files);
45 exit $the_test->run();