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> 45CHARSET=UTF-8 46</setenv> 47 <name> 48Connection re-use with IDN host name over HTTP proxy 49 </name> 50 51 <command> 52http://åäö.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 53</command> 54</client> 55 56# 57# Verify data after the test has been "shot" 58<verify> 59<strip> 60^User-Agent:.* 61</strip> 62<protocol> 63GET http://xn--4cab6c.se/2047 HTTP/1.1 64Host: xn--4cab6c.se 65Accept: */* 66Proxy-Connection: Keep-Alive 67 68GET http://xn--4cab6c.se/20470001 HTTP/1.1 69Host: xn--4cab6c.se 70Accept: */* 71Proxy-Connection: Keep-Alive 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: ./20470001 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 881 891 903 91http://xn--4cab6c.se/20470001 92text/plain; charset=us-ascii 93200 94</stdout> 95 96</verify> 97</testcase> 98