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