Debian Codegraph @

deps/curl/tests/data/test1456

raw
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 proxy
7 haproxy
8 IPv6
9 </keywords>
10 </info>
11 #
12 # Server-side
13 <reply>
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: yesyes
25
26 These data aren't actually sent to the client
27 </data>
28 </reply>
29
30 #
31 # Client-side
32 <client>
33 <features>
34 ipv6
35 </features>
36 <server>
37 http-ipv6
38 </server>
39 <name>
40 HTTP-IPv6 GET with PROXY protocol
41 </name>
42 <command>
43 -g "http://%HOST6IP:%HTTP6PORT/1456" --haproxy-protocol
44 </command>
45 <features>
46 proxy
47 </features>
48 </client>
49
50 #
51 # Verify data after the test has been "shot"
52 <verify>
53 <strip>
54 ^User-Agent:
55 </strip>
56
57 # Strip off the (random) local port number. This test used to use a fixed
58 # local port number that frequently causes the test to fail
59 <strippart>
60 s/PROXY TCP6 ::1 ::1 (\d+) (\d+)/PROXY TCP6 ::1 ::1 $2/
61 </strippart>
62 <protocol>
63 PROXY TCP6 ::1 ::1 %HTTP6PORT
64 GET /1456 HTTP/1.1
65 Host: %HOST6IP:%HTTP6PORT
66 Accept: */*
67
68 </protocol>
69 </verify>
70 </testcase>