8
###############################################################################
13
<title>Main Page</title>
17
Some text and a link to a <a href="http://localhost:8080/secondpage.html">second page</a>.
18
Also, a <a href="http://localhost:8080/nonexistent">broken link</a>.
24
my $secondpage = <<EOF;
27
<title>Second Page</title>
31
Some text and a link to a <a href="http://localhost:8080/thirdpage.html">third page</a>.
32
Also, a <a href="http://localhost:8080/nonexistent">broken link</a>.
38
my $thirdpage = <<EOF;
41
<title>Third Page</title>
45
Some text and a link to a <a href="http://localhost:8080/dummy.txt">text file</a>.
46
Also, another <a href="http://localhost:8080/againnonexistent">broken link</a>.
52
my $dummyfile = <<EOF;
56
# code, msg, headers, content
62
"Content-type" => "text/html",
66
'/secondpage.html' => {
70
"Content-type" => "text/html",
71
"Content-Disposition" => "attachment; filename=\"filename.html\"",
73
content => $secondpage,
75
'/thirdpage.html' => {
79
"Content-type" => "text/html",
81
content => $thirdpage,
87
"Content-type" => "text/plain",
93
my $cmdline = $WgetTest::WGETPATH . " --spider -r --no-content-disposition http://localhost:8080/";
95
my $expected_error_code = 0;
97
my %expected_downloaded_files = (
100
###############################################################################
102
my $the_test = HTTPTest->new (name => "Test--spider-r--no-content-disposition",
105
errcode => $expected_error_code,
106
output => \%expected_downloaded_files);
107
exit $the_test->run();