1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP/1.0
6HTTP GET
7HTTP CONNECT
8HTTP proxy
9proxytunnel
10</keywords>
11</info>
12
13#
14# Server-side
15<reply>
16<connect>
17HTTP/1.1 200 Mighty fine indeed
18Server: test tunnel 2000
19
20</connect>
21
22<data nocheck="yes">
23HTTP/1.0 200 OK
24Date: Thu, 09 Nov 2010 14:49:00 GMT
25Server: test-server/fake
26Content-Type: text/html
27Funny-head: yesyes
28Content-Length: 9
29Connection: keep-alive
30
31contents
32</data>
33</reply>
34
35#
36# Client-side
37<client>
38<server>
39http
40http-proxy
41</server>
42 <name>
43HTTP 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>
57CONNECT %HOSTIP.1078:%HTTPPORT HTTP/1.0
58Host: %HOSTIP.1078:%HTTPPORT
59Proxy-Connection: Keep-Alive
60
61</proxy>
62<protocol>
63GET /we/want/that/page/1078 HTTP/1.1
64Host: %HOSTIP.1078:%HTTPPORT
65Accept: */*
66
67GET /we/want/that/page/1078 HTTP/1.0
68Host: %HOSTIP.1078:%HTTPPORT
69Accept: */*
70
71</protocol>
72<stdout>
73HTTP/1.1 200 Mighty fine indeed
74Server: test tunnel 2000
75
76HTTP/1.0 200 OK
77Date: Thu, 09 Nov 2010 14:49:00 GMT
78Server: test-server/fake
79Content-Type: text/html
80Funny-head: yesyes
81Content-Length: 9
82Connection: keep-alive
83
84contents
85HTTP/1.0 200 OK
86Date: Thu, 09 Nov 2010 14:49:00 GMT
87Server: test-server/fake
88Content-Type: text/html
89Funny-head: yesyes
90Content-Length: 9
91Connection: keep-alive
92
93contents
94</stdout>
95</verify>
96</testcase>
97