test1456 (1139B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 proxy 7 haproxy 8 IPv6 9 </keywords> 10 </info> 11 # 12 # Server-side 13 <reply> 14 <data nocheck="yes"> 15 HTTP/1.1 200 OK 16 Date: Tue, 09 Nov 2010 14:49:00 GMT 17 Server: test-server/fake 18 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 19 ETag: "21025-dc7-39462498" 20 Accept-Ranges: bytes 21 Content-Length: 6 22 Connection: close 23 Content-Type: text/html 24 Funny-head: yesyes 25 26 These data aren't actually sent to the client 27 </data> 28 </reply> 29 30 # 31 # Client-side 32 <client> 33 <features> 34 IPv6 35 </features> 36 <server> 37 http-ipv6 38 </server> 39 <name> 40 HTTP-IPv6 GET with PROXY protocol 41 </name> 42 <command> 43 -g "http://%HOST6IP:%HTTP6PORT/%TESTNUMBER" --haproxy-protocol 44 </command> 45 <features> 46 proxy 47 </features> 48 </client> 49 50 # 51 # Verify data after the test has been "shot" 52 <verify> 53 # Strip off the (random) local port number. This test used to use a fixed 54 # local port number that frequently causes the test to fail 55 <strippart> 56 s/PROXY TCP6 ::1 ::1 (\d+) (\d+)/PROXY TCP6 ::1 ::1 $2/ 57 </strippart> 58 <protocol> 59 PROXY TCP6 ::1 ::1 %HTTP6PORT 60 GET /%TESTNUMBER HTTP/1.1 61 Host: %HOST6IP:%HTTP6PORT 62 User-Agent: curl/%VERSION 63 Accept: */* 64 65 </protocol> 66 </verify> 67 </testcase>