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
. "http://fiddle-dee-dee:Dodgson\@localhost:{{port}}/needs-auth.txt";
32
my $expected_error_code = 0;
34
my %expected_downloaded_files = (
36
content => $wholefile,
40
###############################################################################
42
my $the_test = HTTPTest->new (name => "Test-auth-no-challenge-url",
45
errcode => $expected_error_code,
46
output => \%expected_downloaded_files);
47
exit $the_test->run();