8 ###############################################################################
10 my $currentversion = <<EOF;
11 11111111111111111111111111111111111111111111111111
12 222222222222222222222222222222222222222222222222222222222222
13 3333333333333333333333333333333333333333333333333333333333333333333333
14 444444444444444444444444444444444444444444444444444444444444
15 55555555555555555555555555555555555555555555555555
18 my $newversion = <<EOF;
19 11111111111111111111111111111111111111111111111111
20 222222222222222222222222222222222222222222222222222222222222
23 # code, msg, headers, content
29 "Content-type" => "text/plain",
31 content => $newversion,
35 my $cmdline = $WgetTest::WGETPATH . " -N http://localhost:{{port}}/somefile.txt";
37 my $expected_error_code = 0;
39 my %existing_files = (
41 content => $currentversion,
42 timestamp => 1097310600, # "Sat, 09 Oct 2004 08:30:00 GMT"
46 my %expected_downloaded_files = (
48 content => $newversion,
52 ###############################################################################
54 my $the_test = HTTPTest->new (name => "Test-N-current",
57 errcode => $expected_error_code,
58 existing => \%existing_files,
59 output => \%expected_downloaded_files);
60 exit $the_test->run();