-#!/usr/bin/perl -w
+#!/usr/bin/perl
use strict;
+use warnings;
use HTTPTest;
</head>
<body>
<p>
- Some text and a link to a <a href="http://localhost:8080/firstlevel/secondpage.html">second page</a>.
+ Some text and a link to a <a href="http://localhost:{{port}}/firstlevel/secondpage.html">second page</a>.
</p>
</body>
</html>
</head>
<body>
<p>
- Some text and a link to a <a href="http://localhost:8080/firstlevel/lowerlevel/thirdpage.html">third page</a>.
+ Some text and a link to a <a href="http://localhost:{{port}}/firstlevel/lowerlevel/thirdpage.html">third page</a>.
</p>
</body>
</html>
</head>
<body>
<p>
- Some text and a link to a <a href="http://localhost:8080/higherlevelpage.html">higher level page</a>.
+ Some text and a link to a <a href="http://localhost:{{port}}/higherlevelpage.html">higher level page</a>.
</p>
</body>
</html>
<p>
This page is on a higher level in the URL path hierarchy. Therefore, it
should not be downloaded. Wget should not visit the following link to a
- <a href="http://localhost:8080/firstlevel/fourthpage.html">fourth page</a>.
+ <a href="http://localhost:{{port}}/firstlevel/fourthpage.html">fourth page</a>.
</p>
</body>
</html>
# code, msg, headers, content
my %urls = (
- 'firstlevel/index.html' => {
+ '/firstlevel/index.html' => {
code => "200",
msg => "Dontcare",
headers => {
},
content => $mainpage,
},
- 'firstlevel/secondpage.html' => {
+ '/firstlevel/secondpage.html' => {
code => "200",
msg => "Dontcare",
headers => {
},
content => $secondpage,
},
- 'firstlevel/lowerlevel/thirdpage.html' => {
+ '/firstlevel/lowerlevel/thirdpage.html' => {
code => "200",
msg => "Dontcare",
headers => {
},
content => $thirdpage,
},
- 'firstlevel/fourthpage.html' => {
+ '/firstlevel/fourthpage.html' => {
code => "200",
msg => "Dontcare",
headers => {
},
content => $fourthpage,
},
- 'higherlevelpage.html' => {
+ '/higherlevelpage.html' => {
code => "200",
msg => "Dontcare",
headers => {
},
);
-my $cmdline = "wget -np -nH -r http://localhost:8080/firstlevel/";
+my $cmdline = $WgetTest::WGETPATH . " -np -nH -r http://localhost:{{port}}/firstlevel/";
my $expected_error_code = 0;
cmdline => $cmdline,
errcode => $expected_error_code,
output => \%expected_downloaded_files);
-$the_test->run();
+exit $the_test->run();
# vim: et ts=4 sw=4