9 ###############################################################################
11 my $wholefile = "You're all authenticated.\n";
13 # code, msg, headers, content
15 '/needs-auth.txt' => {
16 auth_method => 'Basic',
17 user => 'fiddle-dee-dee',
20 msg => "You want fries with that?",
22 "Content-type" => "text/plain",
24 content => $wholefile,
28 my $cmdline = $WgetTest::WGETPATH . " --user=fiddle-dee-dee --password=Dodgson"
29 . " http://localhost:{{port}}/needs-auth.txt";
31 my $expected_error_code = 0;
33 my %expected_downloaded_files = (
35 content => $wholefile,
39 ###############################################################################
41 my $the_test = HTTPTest->new (name => "Test-auth-basic",
44 errcode => $expected_error_code,
45 output => \%expected_downloaded_files);
46 exit $the_test->run();