xref: /curl/tests/data/test3202 (revision 18f1cd7a)
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 with spoofed client IP
41</name>
42<command>
43-g "http://%HOST6IP:%HTTP6PORT/%TESTNUMBER" --haproxy-clientip "2001:db8::"
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 2001:db8:: ::1 (\d*) %HTTP6PORT/proxy-line/
57</strippart>
58<protocol>
59proxy-line
60GET /%TESTNUMBER HTTP/1.1
61Host: %HOST6IP:%HTTP6PORT
62User-Agent: curl/%VERSION
63Accept: */*
64
65</protocol>
66</verify>
67</testcase>
68