9 ###############################################################################
11 my $partiallydownloaded = <<EOF;
12 11111111111111111111111111111111111111111111111111
13 22222222x222222222222222222222222222222222222222222222222222
17 3333333333333333333333333333333333333333333333333333333333333333333333
18 444444444444444444444444444444444444444444444444444444444444
19 55555555555555555555555555555555555555555555555555
22 my $wholefile = <<EOF . $rest;
23 11111111111111111111111111111111111111111111111111
24 222222222222222222222222222222222222222222222222222222222222
27 my $downloadedfile = $partiallydownloaded . $rest;
29 # code, msg, headers, content
35 "Content-type" => "text/plain",
37 content => $wholefile,
41 my $cmdline = $WgetTest::WGETPATH . " -c http://localhost:{{port}}/somefile.txt";
43 my $expected_error_code = 0;
45 my %existing_files = (
47 content => $partiallydownloaded,
51 my %expected_downloaded_files = (
53 content => $downloadedfile,
57 ###############################################################################
59 my $the_test = HTTPTest->new (name => "Test-c-partial",
62 errcode => $expected_error_code,
63 existing => \%existing_files,
64 output => \%expected_downloaded_files);
65 exit $the_test->run();