1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6IDN 7followlocation 8--write-out 9</keywords> 10</info> 11 12# 13# Server-side 14<reply> 15<data nocheck="yes"> 16HTTP/1.1 302 OK swsbounce 17Date: Thu, 09 Nov 2010 14:49:00 GMT 18Content-Length: 9 19Content-Type: text/plain 20Location: http://åäö.se:%HTTPPORT/14480001 21 22redirect 23</data> 24<data1 nocheck="yes"> 25HTTP/1.1 200 OK 26Date: Thu, 09 Nov 2010 14:49:00 GMT 27Content-Length: 3 28Content-Type: text/plain; charset=us-ascii 29 30OK 31</data1> 32</reply> 33 34# 35# Client-side 36<client> 37<server> 38http 39</server> 40<features> 41idn 42</features> 43<setenv> 44LC_ALL=en_US.UTF-8 45LC_CTYPE=en_US.UTF-8 46</setenv> 47<precheck> 48perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");' 49</precheck> 50 <name> 51Redirect following to UTF-8 IDN host name 52 </name> 53 54 <command> 55http://åäö.se:%HTTPPORT/1448 --resolve xn--4cab6c.se:%HTTPPORT:%HOSTIP -L --connect-to %HOSTIP:%HTTPPORT:%HOSTIP:%HTTPPORT 56</command> 57</client> 58 59# 60# Verify data after the test has been "shot" 61<verify> 62<protocol> 63GET /1448 HTTP/1.1 64Host: xn--4cab6c.se:%HTTPPORT 65User-Agent: curl/%VERSION 66Accept: */* 67 68GET /14480001 HTTP/1.1 69Host: xn--4cab6c.se:%HTTPPORT 70User-Agent: curl/%VERSION 71Accept: */* 72 73</protocol> 74 75<stdout> 76HTTP/1.1 302 OK swsbounce 77Date: Thu, 09 Nov 2010 14:49:00 GMT 78Content-Length: 9 79Content-Type: text/plain 80Location: http://åäö.se:%HTTPPORT/14480001 81 82HTTP/1.1 200 OK 83Date: Thu, 09 Nov 2010 14:49:00 GMT 84Content-Length: 3 85Content-Type: text/plain; charset=us-ascii 86 87OK 88</stdout> 89 90</verify> 91</testcase> 92