9 ###############################################################################
11 my $wholefile = "You're all authenticated.\n";
13 # code, msg, headers, content
15 '/needs-auth.txt' => {
16 auth_no_challenge => 1,
17 auth_method => 'Basic',
18 user => 'fiddle-dee-dee',
21 msg => "You want fries with that?",
23 "Content-type" => "text/plain",
25 content => $wholefile,
29 my $cmdline = $WgetTest::WGETPATH . " --auth-no-challenge"
30 . " --user=fiddle-dee-dee --password=Dodgson"
31 . " http://localhost:{{port}}/needs-auth.txt";
33 my $expected_error_code = 0;
35 my %expected_downloaded_files = (
37 content => $wholefile,
41 ###############################################################################
43 my $the_test = HTTPTest->new (name => "Test-auth-no-challenge",
46 errcode => $expected_error_code,
47 output => \%expected_downloaded_files);
48 exit $the_test->run();