2016-12-01 20:05:04 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
2019-05-27 19:42:05 +08:00
|
|
|
proxy
|
|
|
|
haproxy
|
2016-12-01 20:05:04 +08:00
|
|
|
IPv6
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
2019-02-22 05:06:16 +08:00
|
|
|
<data nocheck="yes">
|
2016-12-01 20:05:04 +08:00
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
|
|
|
Server: test-server/fake
|
|
|
|
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
|
|
|
ETag: "21025-dc7-39462498"
|
|
|
|
Accept-Ranges: bytes
|
|
|
|
Content-Length: 6
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/html
|
|
|
|
Funny-head: yesyes
|
|
|
|
|
2019-02-22 05:06:16 +08:00
|
|
|
These data aren't actually sent to the client
|
2016-12-01 20:05:04 +08:00
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<features>
|
|
|
|
ipv6
|
|
|
|
</features>
|
|
|
|
<server>
|
|
|
|
http-ipv6
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP-IPv6 GET with PROXY protocol
|
|
|
|
</name>
|
|
|
|
<command>
|
2019-12-18 21:38:35 +08:00
|
|
|
-g "http://%HOST6IP:%HTTP6PORT/1456" --haproxy-protocol
|
2016-12-01 20:05:04 +08:00
|
|
|
</command>
|
2019-10-15 04:29:19 +08:00
|
|
|
<features>
|
|
|
|
proxy
|
|
|
|
</features>
|
2016-12-01 20:05:04 +08:00
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strip>
|
|
|
|
^User-Agent:
|
|
|
|
</strip>
|
2019-12-18 21:38:35 +08:00
|
|
|
|
|
|
|
# Strip off the (random) local port number. This test used to use a fixed
|
|
|
|
# local port number that frequently causes the test to fail
|
|
|
|
<strippart>
|
|
|
|
s/PROXY TCP6 ::1 ::1 (\d+) (\d+)/PROXY TCP6 ::1 ::1 $2/
|
|
|
|
</strippart>
|
2016-12-01 20:05:04 +08:00
|
|
|
<protocol>
|
2019-12-18 21:38:35 +08:00
|
|
|
PROXY TCP6 ::1 ::1 %HTTP6PORT
|
2016-12-01 20:05:04 +08:00
|
|
|
GET /1456 HTTP/1.1
|
|
|
|
Host: %HOST6IP:%HTTP6PORT
|
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|