ca2f6c67d690f6e0e2898ae2900e542aa2f560c0
[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 \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 \r
33 HTTP/1.1 200 OK\r
34 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
35 Content-Length: 9\r
36
37 mooooooo
38 </datacheck>
39 </reply>
40
41 #
42 # Client-side
43 <client>
44 <features>
45 ipv6
46 </features>
47 <server>
48 http-proxy
49 http-ipv6
50 http
51 </server>
52  <name>
53 HTTP CONNECT to IPv6 numerical address
54  </name>
55 # 0x4ce == 1230, the test number
56  <command>
57 http://[1234:1234:1234::4ce]:%HTTPPORT/wanted/page/1230 -p -x %HOSTIP:%HTTPPORT
58 </command>
59 </client>
60
61 #
62 # Verify data after the test has been "shot"
63 <verify>
64 <strip>
65 ^User-Agent:.*
66 </strip>
67 <protocol>
68 CONNECT [1234:1234:1234::4ce]:%HTTPPORT HTTP/1.1\r
69 Host: [1234:1234:1234::4ce]:%HTTPPORT\r
70 Proxy-Connection: Keep-Alive\r
71 \r
72 GET /wanted/page/1230 HTTP/1.1\r
73 Host: [1234:1234:1234::4ce]:%HTTPPORT\r
74 Accept: */*\r
75 \r
76 </protocol>
77 </verify>
78 </testcase>