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: Tue, 09 Nov 2010 14:49:00 GMT 19Content-Length: 9 20Content-Type: text/plain 21Location: ./%TESTNUMBER0001 22 23redirect 24</data> 25<data1 nocheck="yes"> 26HTTP/1.1 200 OK 27Date: Tue, 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 43proxy 44</features> 45<setenv> 46LC_ALL=en_US.UTF-8 47LC_CTYPE=en_US.UTF-8 48</setenv> 49<precheck> 50perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");' 51</precheck> 52<name> 53Connection reuse with IDN host name over HTTP proxy 54</name> 55 56<command> 57http://åäö.se/%TESTNUMBER -x %HOSTIP:%HTTPPORT -w "%{num_connects}\n%{num_redirects}\n%{size_download}\n%{url_effective}\n%{content_type}\n%{response_code}\n" -L 58</command> 59</client> 60 61# 62# Verify data after the test has been "shot" 63<verify> 64<protocol> 65GET http://xn--4cab6c.se/%TESTNUMBER HTTP/1.1 66Host: xn--4cab6c.se 67User-Agent: curl/%VERSION 68Accept: */* 69Proxy-Connection: Keep-Alive 70 71GET http://xn--4cab6c.se/%TESTNUMBER0001 HTTP/1.1 72Host: xn--4cab6c.se 73User-Agent: curl/%VERSION 74Accept: */* 75Proxy-Connection: Keep-Alive 76 77</protocol> 78 79<stdout> 80HTTP/1.1 302 OK swsbounce 81Date: Tue, 09 Nov 2010 14:49:00 GMT 82Content-Length: 9 83Content-Type: text/plain 84Location: ./%TESTNUMBER0001 85 86HTTP/1.1 200 OK 87Date: Tue, 09 Nov 2010 14:49:00 GMT 88Content-Length: 3 89Content-Type: text/plain; charset=us-ascii 90 91OK 921 931 943 95http://åäö.se/%TESTNUMBER0001 96text/plain; charset=us-ascii 97200 98</stdout> 99 100</verify> 101</testcase> 102