xref: /curl/tests/data/test1456 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6proxy
7haproxy
8IPv6
9</keywords>
10</info>
11#
12# Server-side
13<reply>
14<data nocheck="yes">
15HTTP/1.1 200 OK
16Date: Tue, 09 Nov 2010 14:49:00 GMT
17Server: test-server/fake
18Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
19ETag: "21025-dc7-39462498"
20Accept-Ranges: bytes
21Content-Length: 6
22Connection: close
23Content-Type: text/html
24Funny-head: yesyes
25
26These data aren't actually sent to the client
27</data>
28</reply>
29
30#
31# Client-side
32<client>
33<features>
34ipv6
35</features>
36<server>
37http-ipv6
38</server>
39<name>
40HTTP-IPv6 GET with PROXY protocol
41</name>
42<command>
43-g "http://%HOST6IP:%HTTP6PORT/%TESTNUMBER" --haproxy-protocol
44</command>
45<features>
46proxy
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>
56s/PROXY TCP6 ::1 ::1 (\d+) (\d+)/PROXY TCP6 ::1 ::1 $2/
57</strippart>
58<protocol>
59PROXY TCP6 ::1 ::1 %HTTP6PORT
60GET /%TESTNUMBER HTTP/1.1
61Host: %HOST6IP:%HTTP6PORT
62User-Agent: curl/%VERSION
63Accept: */*
64
65</protocol>
66</verify>
67</testcase>
68