]> sjero.net Git - wget/blob - tests/test1
[svn] Better explanation of last change to HTTP code in ChangeLog.
[wget] / tests / test1
1 #!/usr/bin/perl -w
2
3 use Testing;
4
5 use strict;
6
7 ###############################################################################
8
9 my $dummyfile = <<EOF;
10 Content
11 EOF
12
13 # code, msg, headers, content
14 my %urls = (
15     '/dummy.html' => {
16         code => "200",
17         msg => "Dontcare",
18         headers => {
19             "Content-type" => "text/plain",
20         },
21         content => $dummyfile
22     },
23 );
24
25 my $cmdline = "wget -vd http://localhost:8080/dummy.html";
26
27 my $expected_error_code = 0;
28
29 my %expected_downloaded_files = (
30     'dummy.html' => $dummyfile,
31 );
32
33 ###############################################################################
34
35 Testing::Run_HTTP_Test (\%urls, $cmdline, $expected_error_code, \%expected_downloaded_files);
36
37 # vim: et ts=4 sw=4
38