Git init
[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 <data nocheck="yes">
17 HTTP/1.0 200 OK\r
18 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
19 Server: test-server/fake\r
20 Content-Type: text/html\r
21 Funny-head: yesyes\r
22 Content-Length: 9\r
23 Connection: keep-alive\r
24 \r
25 contents
26 </data>
27 </reply>
28
29 #
30 # Client-side
31 <client>
32 <server>
33 http
34 </server>
35  <name>
36 HTTP 1.0 CONNECT with proxytunnel and downgrade GET to HTTP/1.0
37  </name>
38  <command>
39 --proxy1.0 %HOSTIP:%HTTPPORT -p http://%HOSTIP:%HTTPPORT/we/want/that/page/1078 http://%HOSTIP:%HTTPPORT/we/want/that/page/1078
40 </command>
41 </client>
42
43 #
44 # Verify data after the test has been "shot"
45 <verify>
46 <strip>
47 ^User-Agent:.*
48 </strip>
49 <protocol>
50 CONNECT %HOSTIP:%HTTPPORT HTTP/1.0\r
51 Host: %HOSTIP:%HTTPPORT\r
52 Proxy-Connection: Keep-Alive\r
53 \r
54 GET /we/want/that/page/1078 HTTP/1.1\r
55 Host: %HOSTIP:%HTTPPORT\r
56 Accept: */*\r
57 \r
58 GET /we/want/that/page/1078 HTTP/1.0\r
59 Host: %HOSTIP:%HTTPPORT\r
60 Accept: */*\r
61 \r
62 </protocol>
63 <stdout>
64 HTTP/1.1 200 Mighty fine indeed\r
65 \r
66 HTTP/1.0 200 OK\r
67 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
68 Server: test-server/fake\r
69 Content-Type: text/html\r
70 Funny-head: yesyes\r
71 Content-Length: 9\r
72 Connection: keep-alive\r
73 \r
74 contents
75 HTTP/1.0 200 OK\r
76 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
77 Server: test-server/fake\r
78 Content-Type: text/html\r
79 Funny-head: yesyes\r
80 Content-Length: 9\r
81 Connection: keep-alive\r
82 \r
83 contents
84 </stdout>
85 </verify>
86 </testcase>