8 ###############################################################################
10 my $partiallydownloaded = <<EOF;
11 11111111111111111111111111111111111111111111111111
12 22222222x222222222222222222222222222222222222222222222222222
16 3333333333333333333333333333333333333333333333333333333333333333333333
17 444444444444444444444444444444444444444444444444444444444444
18 55555555555555555555555555555555555555555555555555
21 my $downloadedfile = $partiallydownloaded . $rest;
23 # code, msg, headers, content
30 "Content-type" => "text/plain",
31 "Content-Length" => 0,
37 my $cmdline = $WgetTest::WGETPATH . " -c http://localhost:{{port}}/somefile.txt";
39 my $expected_error_code = 0;
41 my %existing_files = (
43 content => $downloadedfile,
47 my %expected_downloaded_files = (
49 content => $downloadedfile,
53 ###############################################################################
55 my $the_test = HTTPTest->new (name => "Test-c-partial",
58 errcode => $expected_error_code,
59 existing => \%existing_files,
60 output => \%expected_downloaded_files);
61 exit $the_test->run();