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",
23 "Content-Disposition" => "attachment; filename=\"Flubber\"",
25 content => $wholefile,
29 my $cmdline = $WgetTest::WGETPATH . " --user=fiddle-dee-dee --password=Dodgson"
30 . " --content-disposition http://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-with-content-disposition",
45 errcode => $expected_error_code,
46 output => \%expected_downloaded_files);
47 exit $the_test->run();