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: */* 66 67GET http://xn--4cab6c.se/20470001 HTTP/1.1 68Host: xn--4cab6c.se 69Accept: */* 70 71</protocol> 72 73<stdout> 74HTTP/1.1 302 OK swsbounce 75Date: Thu, 09 Nov 2010 14:49:00 GMT 76Content-Length: 9 77Content-Type: text/plain 78Location: ./20470001 79 80HTTP/1.1 200 OK 81Date: Thu, 09 Nov 2010 14:49:00 GMT 82Content-Length: 3 83Content-Type: text/plain; charset=us-ascii 84 85OK 861 871 883 89http://xn--4cab6c.se/20470001 90text/plain; charset=us-ascii 91200 92</stdout> 93 94</verify> 95</testcase> 96