1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP CONNECT
7HTTP proxy
8proxytunnel
9</keywords>
10</info>
11
12#
13# Server-side
14<reply>
15<connect>
16HTTP/1.1 200 Mighty fine indeed
17Server: test tunnel 2000
18
19</connect>
20
21<data nocheck="yes">
22</data>
23</reply>
24
25#
26# Client-side
27<client>
28<server>
29http
30http-proxy
31</server>
32<name>
33CONNECT to peer that returns nothing
34</name>
35<command>
36--proxytunnel --proxy %HOSTIP:%PROXYPORT http://%HOSTIP.1297:%HTTPPORT/we/want/that/page/1297
37</command>
38<features>
39proxy
40</features>
41</client>
42
43#
44# Verify data after the test has been "shot"
45<verify>
46<proxy>
47CONNECT %HOSTIP.1297:%HTTPPORT HTTP/1.1
48Host: %HOSTIP.1297:%HTTPPORT
49User-Agent: curl/%VERSION
50Proxy-Connection: Keep-Alive
51
52</proxy>
53<protocol>
54GET /we/want/that/page/1297 HTTP/1.1
55Host: %HOSTIP.1297:%HTTPPORT
56User-Agent: curl/%VERSION
57Accept: */*
58
59</protocol>
60# 52 - got nothing
61<errorcode>
6252
63</errorcode>
64</verify>
65</testcase>
66