8 ###############################################################################
10 my $partiallydownloaded = <<EOF;
11 11111111111111111111111111111111111111111111111111
12 22222222x222222222222222222222222222222222222222222222222222
16 3333333333333333333333333333333333333333333333333333333333333333333333
17 444444444444444444444444444444444444444444444444444444444444
18 55555555555555555555555555555555555555555555555555
21 my $wholefile = <<EOF . $rest;
22 11111111111111111111111111111111111111111111111111
23 222222222222222222222222222222222222222222222222222222222222
26 my $downloadedfile = $partiallydownloaded . $rest;
28 # code, msg, headers, content
34 "Content-type" => "text/plain",
36 content => $wholefile,
40 my $cmdline = $WgetTest::WGETPATH . " -c http://localhost:{{port}}/somefile.txt";
42 my $expected_error_code = 0;
44 my %existing_files = (
46 content => $partiallydownloaded,
50 my %expected_downloaded_files = (
52 content => $downloadedfile,
56 ###############################################################################
58 my $the_test = HTTPTest->new (name => "Test-c-partial",
61 errcode => $expected_error_code,
62 existing => \%existing_files,
63 output => \%expected_downloaded_files);
64 exit $the_test->run();