tizen 2.3.1 release
[external/curl.git] / tests / data / test1078
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP/1.0
6 HTTP GET
7 HTTP CONNECT
8 HTTP proxy
9 proxytunnel
10 </keywords>
11 </info>
12
13 #
14 # Server-side
15 <reply>
16 <connect>
17 HTTP/1.1 200 Mighty fine indeed\r
18 Server: test tunnel 2000\r
19 \r
20 </connect>
21
22 <data nocheck="yes">
23 HTTP/1.0 200 OK\r
24 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
25 Server: test-server/fake\r
26 Content-Type: text/html\r
27 Funny-head: yesyes\r
28 Content-Length: 9\r
29 Connection: keep-alive\r
30 \r
31 contents
32 </data>
33 </reply>
34
35 #
36 # Client-side
37 <client>
38 <server>
39 http
40 http-proxy
41 </server>
42  <name>
43 HTTP 1.0 CONNECT with proxytunnel and downgrade GET to HTTP/1.0
44  </name>
45  <command>
46 --proxy1.0 %HOSTIP:%PROXYPORT -p http://%HOSTIP.1078:%HTTPPORT/we/want/that/page/1078 http://%HOSTIP.1078:%HTTPPORT/we/want/that/page/1078
47 </command>
48 </client>
49
50 #
51 # Verify data after the test has been "shot"
52 <verify>
53 <strip>
54 ^User-Agent:.*
55 </strip>
56 <proxy>
57 CONNECT %HOSTIP.1078:%HTTPPORT HTTP/1.0\r
58 Host: %HOSTIP.1078:%HTTPPORT\r
59 Proxy-Connection: Keep-Alive\r
60 \r
61 </proxy>
62 <protocol>
63 GET /we/want/that/page/1078 HTTP/1.1\r
64 Host: %HOSTIP.1078:%HTTPPORT\r
65 Accept: */*\r
66 \r
67 GET /we/want/that/page/1078 HTTP/1.0\r
68 Host: %HOSTIP.1078:%HTTPPORT\r
69 Accept: */*\r
70 \r
71 </protocol>
72 <stdout>
73 HTTP/1.1 200 Mighty fine indeed\r
74 Server: test tunnel 2000\r
75 \r
76 HTTP/1.0 200 OK\r
77 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
78 Server: test-server/fake\r
79 Content-Type: text/html\r
80 Funny-head: yesyes\r
81 Content-Length: 9\r
82 Connection: keep-alive\r
83 \r
84 contents
85 HTTP/1.0 200 OK\r
86 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
87 Server: test-server/fake\r
88 Content-Type: text/html\r
89 Funny-head: yesyes\r
90 Content-Length: 9\r
91 Connection: keep-alive\r
92 \r
93 contents
94 </stdout>
95 </verify>
96 </testcase>