• 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: Tue, 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:%HTTPPORT/we/want/that/page/%TESTNUMBER http://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER
47</command>
48<features>
49proxy
50</features>
51</client>
52
53#
54# Verify data after the test has been "shot"
55<verify>
56<proxy>
57CONNECT %HOSTIP:%HTTPPORT HTTP/1.0
58Host: %HOSTIP:%HTTPPORT
59User-Agent: curl/%VERSION
60Proxy-Connection: Keep-Alive
61
62</proxy>
63<protocol>
64GET /we/want/that/page/%TESTNUMBER HTTP/1.1
65Host: %HOSTIP:%HTTPPORT
66User-Agent: curl/%VERSION
67Accept: */*
68
69GET /we/want/that/page/%TESTNUMBER HTTP/1.0
70Host: %HOSTIP:%HTTPPORT
71User-Agent: curl/%VERSION
72Accept: */*
73
74</protocol>
75<stdout>
76HTTP/1.1 200 Mighty fine indeed
77Server: test tunnel 2000
78
79HTTP/1.0 200 OK
80Date: Tue, 09 Nov 2010 14:49:00 GMT
81Server: test-server/fake
82Content-Type: text/html
83Funny-head: yesyes
84Content-Length: 9
85Connection: keep-alive
86
87contents
88HTTP/1.0 200 OK
89Date: Tue, 09 Nov 2010 14:49:00 GMT
90Server: test-server/fake
91Content-Type: text/html
92Funny-head: yesyes
93Content-Length: 9
94Connection: keep-alive
95
96contents
97</stdout>
98</verify>
99</testcase>
100