test2046 (1590B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 IDN 7 followlocation 8 --resolve 9 --write-out 10 </keywords> 11 </info> 12 13 # 14 # Server-side 15 <reply> 16 <data nocheck="yes"> 17 HTTP/1.1 302 OK swsbounce 18 Date: Tue, 09 Nov 2010 14:49:00 GMT 19 Content-Length: 9 20 Content-Type: text/plain 21 Location: ./%TESTNUMBER0001 22 23 redirect 24 </data> 25 <data1 nocheck="yes"> 26 HTTP/1.1 200 OK 27 Date: Tue, 09 Nov 2010 14:49:00 GMT 28 Content-Length: 3 29 Content-Type: text/plain; charset=us-ascii 30 31 OK 32 </data1> 33 </reply> 34 35 # 36 # Client-side 37 <client> 38 <server> 39 http 40 </server> 41 <features> 42 IDN 43 codeset-utf8 44 </features> 45 <setenv> 46 LC_ALL=en_US.UTF-8 47 LC_CTYPE=en_US.UTF-8 48 </setenv> 49 <name> 50 Connection reuse with IDN host name 51 </name> 52 53 <command> 54 http://%hex[%c3%a5%c3%a4%c3%b6]hex%.se:%HTTPPORT/%TESTNUMBER --resolve xn--4cab6c.se:%HTTPPORT:%HOSTIP -w "%{num_connects}\n%{num_redirects}\n%{size_download}\n%{url_effective}\n%{content_type}\n%{response_code}\n" -L 55 </command> 56 </client> 57 58 # 59 # Verify data after the test has been "shot" 60 <verify> 61 <protocol> 62 GET /%TESTNUMBER HTTP/1.1 63 Host: xn--4cab6c.se:%HTTPPORT 64 User-Agent: curl/%VERSION 65 Accept: */* 66 67 GET /%TESTNUMBER0001 HTTP/1.1 68 Host: xn--4cab6c.se:%HTTPPORT 69 User-Agent: curl/%VERSION 70 Accept: */* 71 72 </protocol> 73 74 <stdout> 75 HTTP/1.1 302 OK swsbounce 76 Date: Tue, 09 Nov 2010 14:49:00 GMT 77 Content-Length: 9 78 Content-Type: text/plain 79 Location: ./%TESTNUMBER0001 80 81 HTTP/1.1 200 OK 82 Date: Tue, 09 Nov 2010 14:49:00 GMT 83 Content-Length: 3 84 Content-Type: text/plain; charset=us-ascii 85 86 OK 87 1 88 1 89 3 90 http://%hex[%c3%a5%c3%a4%c3%b6]hex%.se:%HTTPPORT/%TESTNUMBER0001 91 text/plain; charset=us-ascii 92 200 93 </stdout> 94 95 </verify> 96 </testcase>