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