<testcase>
<info>
<keywords>
HTTP
HTTP GET
proxy
haproxy
</keywords>
</info>

#
# Server-side
<reply name="3201">
<data nocheck="yes">
HTTP/1.1 200 OK
Date: Tue, 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: barkbark

-foo-
</data>
</reply>

#
# Client-side
<client>
<server>
http
</server>
<name>
HTTP GET when PROXY Protocol enabled and spoofed client IP
</name>
<command>
http://127.0.0.1:37827/3201 --haproxy-clientip "192.168.1.1" -H "Testno: 3201"
</command>
<features>
proxy
</features>
</client>

#
# Verify data after the test has been "shot"
<verify>
<strippart>
s/^PROXY TCP4 192.168.1.1 127.0.0.1 (\d*) 37827/proxy-line/
</strippart>
<protocol>
proxy-line
GET /3201 HTTP/1.1
Host: 127.0.0.1:37827
User-Agent: curl/8.12.1
Accept: */*
Testno: 3201

</protocol>
</verify>
</testcase>
