• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
59
60</proxy>
61<protocol>
62GET /we/want/that/page/1078 HTTP/1.1
63Host: %HOSTIP.1078:%HTTPPORT
64Accept: */*
65
66GET /we/want/that/page/1078 HTTP/1.0
67Host: %HOSTIP.1078:%HTTPPORT
68Accept: */*
69
70</protocol>
71<stdout>
72HTTP/1.1 200 Mighty fine indeed
73Server: test tunnel 2000
74
75HTTP/1.0 200 OK
76Date: Thu, 09 Nov 2010 14:49:00 GMT
77Server: test-server/fake
78Content-Type: text/html
79Funny-head: yesyes
80Content-Length: 9
81Connection: keep-alive
82
83contents
84HTTP/1.0 200 OK
85Date: Thu, 09 Nov 2010 14:49:00 GMT
86Server: test-server/fake
87Content-Type: text/html
88Funny-head: yesyes
89Content-Length: 9
90Connection: keep-alive
91
92contents
93</stdout>
94</verify>
95</testcase>
96