8 ###############################################################################
10 my $partiallydownloaded = <<EOF;
11 11111111111111111111111111111111111111111111111111
12 222222222222222222222222222222222222222222222222222222222222
15 my $wholefile = <<EOF;
16 11111111111111111111111111111111111111111111111111
17 222222222222222222222222222222222222222222222222222222222222
18 3333333333333333333333333333333333333333333333333333333333333333333333
19 444444444444444444444444444444444444444444444444444444444444
20 55555555555555555555555555555555555555555555555555
23 # code, msg, headers, content
29 "Content-type" => "text/plain",
31 content => $wholefile,
35 my $cmdline = $WgetTest::WGETPATH . " -c http://localhost:8080/somefile.txt";
37 my $expected_error_code = 0;
39 my %existing_files = (
41 content => $partiallydownloaded,
45 my %expected_downloaded_files = (
47 content => $wholefile,
51 ###############################################################################
53 my $the_test = HTTPTest->new (name => "Test-c-partial",
56 errcode => $expected_error_code,
57 existing => \%existing_files,
58 output => \%expected_downloaded_files);
59 exit $the_test->run();