xref: /curl/tests/data/test1455 (revision e2b4df7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6proxy
7haproxy
8</keywords>
9</info>
10
11#
12# Server-side
13<reply name="%TESTNUMBER">
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: barkbark
25
26-foo-
27</data>
28</reply>
29
30#
31# Client-side
32<client>
33<server>
34http
35</server>
36<name>
37HTTP GET when PROXY Protocol enabled
38</name>
39<command>
40http://%HOSTIP:%HTTPPORT/%TESTNUMBER --haproxy-protocol -H "Testno: %TESTNUMBER"
41</command>
42<features>
43proxy
44</features>
45</client>
46
47#
48# Verify data after the test has been "shot"
49<verify>
50<strippart>
51s/^PROXY TCP4 %CLIENTIP %HOSTIP (\d*) %HTTPPORT/proxy-line/
52</strippart>
53<protocol>
54proxy-line
55GET /%TESTNUMBER HTTP/1.1
56Host: %HOSTIP:%HTTPPORT
57User-Agent: curl/%VERSION
58Accept: */*
59Testno: %TESTNUMBER
60
61</protocol>
62</verify>
63</testcase>
64