Debian Codegraph @

deps/curl/tests/data/test1455

raw
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 proxy
7 haproxy
8 </keywords>
9 </info>
10
11 #
12 # Server-side
13 <reply name="1455">
14 <data nocheck="yes">
15 HTTP/1.1 200 OK
16 Date: Thu, 09 Nov 2010 14:49:00 GMT
17 Server: test-server/fake
18 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
19 ETag: "21025-dc7-39462498"
20 Accept-Ranges: bytes
21 Content-Length: 6
22 Connection: close
23 Content-Type: text/html
24 Funny-head: barkbark
25
26 -foo-
27 </data>
28 </reply>
29
30 #
31 # Client-side
32 <client>
33 <server>
34 http
35 </server>
36 <name>
37 HTTP GET when PROXY Protocol enabled
38 </name>
39 <command>
40 http://%HOSTIP:%HTTPPORT/1455 --haproxy-protocol -H "Testno: 1455"
41 </command>
42 <features>
43 proxy
44 </features>
45 </client>
46
47 #
48 # Verify data after the test has been "shot"
49 <verify>
50 <strip>
51 ^User-Agent:.*
52 </strip>
53 <strippart>
54 s/^PROXY TCP4 %CLIENTIP %HOSTIP (\d*) %HTTPPORT/proxy-line/
55 </strippart>
56 <protocol>
57 proxy-line
58 GET /1455 HTTP/1.1
59 Host: %HOSTIP:%HTTPPORT
60 Accept: */*
61 Testno: 1455
62
63 </protocol>
64 </verify>
65 </testcase>