7 # " Kon'nichiwa <dot> Japan
8 my $euc_jp_hostname = "\272\243\306\374\244\317.\306\374\313\334";
9 my $punycoded_hostname = 'xn--v9ju72g90p.xn--wgv71a';
11 ###############################################################################
13 my $starter_file = <<EOF;
14 <meta http-equiv="Content-Type" content="text/html; charset=EUC-JP" />
15 <a href="http://$euc_jp_hostname/">The link</a>
18 my $result_file = <<EOF;
22 # code, msg, headers, content
24 'http://start-here.com/start.html' => {
26 msg => "You want fries with that?",
28 'Content-Type' => 'text/html; charset=UTF-8',
30 content => $starter_file,
32 "http://$punycoded_hostname/index.html" => {
36 'Content-Type' => 'text/plain',
38 content => $result_file,
42 my $cmdline = $WgetTest::WGETPATH . " --debug --iri -rH"
43 . " -e http_proxy=localhost:{{port}} http://start-here.com/start.html";
45 my $expected_error_code = 0;
47 my %expected_downloaded_files = (
48 'start-here.com/start.html' => {
49 content => $starter_file,
51 "$punycoded_hostname/index.html" => {
52 content => $result_file,
56 ###############################################################################
58 my $the_test = HTTPTest->new (name => "Test-iri-meta",
61 errcode => $expected_error_code,
62 output => \%expected_downloaded_files);
63 exit $the_test->run();