Imported Upstream version 7.40.0
[platform/upstream/curl.git] / tests / data / test1230
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP CONNECT
6 HTTP proxy
7 IPv6
8 </keywords>
9 </info>
10
11 #
12 # Server-side
13 <reply>
14
15 <data>
16 HTTP/1.1 200 OK\r
17 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
18 Content-Length: 9\r
19
20 mooooooo
21 </data>
22
23 <connect>
24 HTTP/1.1 200 welcome dear\r
25 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
26 Content-Length: 0\r
27 \r
28 </connect>
29
30 <datacheck>
31 HTTP/1.1 200 welcome dear\r
32 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
33 Content-Length: 0\r
34 \r
35 HTTP/1.1 200 OK\r
36 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
37 Content-Length: 9\r
38
39 mooooooo
40 </datacheck>
41 </reply>
42
43 #
44 # Client-side
45 <client>
46 <features>
47 ipv6
48 </features>
49 <server>
50 http-proxy
51 http-ipv6
52 http
53 </server>
54  <name>
55 HTTP CONNECT to IPv6 numerical address
56  </name>
57 # 0x4ce == 1230, the test number
58  <command>
59 http://[1234:1234:1234::4ce]:%HTTPPORT/wanted/page/1230 -p -x %HOSTIP:%HTTPPORT
60 </command>
61 </client>
62
63 #
64 # Verify data after the test has been "shot"
65 <verify>
66 <strip>
67 ^User-Agent:.*
68 </strip>
69 <protocol>
70 CONNECT [1234:1234:1234::4ce]:%HTTPPORT HTTP/1.1\r
71 Host: [1234:1234:1234::4ce]:%HTTPPORT\r
72 Proxy-Connection: Keep-Alive\r
73 \r
74 GET /wanted/page/1230 HTTP/1.1\r
75 Host: [1234:1234:1234::4ce]:%HTTPPORT\r
76 Accept: */*\r
77 \r
78 </protocol>
79 </verify>
80 </testcase>