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",
72 content => $secondpage,
74 '/thirdpage.html' => {
78 "Content-type" => "text/html",
80 content => $thirdpage,
86 "Content-type" => "text/plain",
92 my $cmdline = "wget --spider -r http://localhost:8080/";
94 my $expected_error_code = 0;
96 my %expected_downloaded_files = (
99 ###############################################################################
101 my $the_test = HTTPTest->new (name => "Test--spider-r",
104 errcode => $expected_error_code,
105 output => \%expected_downloaded_files);