6 use WgetFeature qw(iri);
9 # " Kon'nichiwa <dot> Japan
10 my $euc_jp_hostname = "\272\243\306\374\244\317.\306\374\313\334";
11 my $punycoded_hostname = 'xn--v9ju72g90p.xn--wgv71a';
13 ###############################################################################
15 my $result_file = <<EOF;
19 # code, msg, headers, content
21 "http://$punycoded_hostname/index.html" => {
25 'Content-Type' => 'text/plain',
27 content => $result_file,
31 my $cmdline = $WgetTest::WGETPATH . " --debug --iri -rH"
32 . " -e http_proxy=localhost:{{port}} --local-encoding=EUC-JP $euc_jp_hostname";
34 my $expected_error_code = 0;
36 my %expected_downloaded_files = (
37 "$punycoded_hostname/index.html" => {
38 content => $result_file,
42 ###############################################################################
44 my $the_test = HTTPTest->new (name => "Test-idn-cmd",
47 errcode => $expected_error_code,
48 output => \%expected_downloaded_files);
49 exit $the_test->run();