• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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<data>
16HTTP/1.1 200 OK
17Date: Thu, 09 Nov 2010 14:49:00 GMT
18Server: test-server/fake swsclose
19Content-Type: text/html
20Funny-head: yesyes
21Content-Length: 9
22
23contents
24</data>
25<connect>
26HTTP/1.1 204 Sure go ahead
27
28</connect>
29<datacheck>
30HTTP/1.1 204 Sure go ahead
31
32HTTP/1.1 200 OK
33Date: Thu, 09 Nov 2010 14:49:00 GMT
34Server: test-server/fake swsclose
35Content-Type: text/html
36Funny-head: yesyes
37Content-Length: 9
38
39contents
40</datacheck>
41</reply>
42
43#
44# Client-side
45<client>
46<server>
47http
48http-proxy
49</server>
50 <name>
51HTTP CONNECT with 204 response
52 </name>
53 <command>
54http://test.1904:%HTTPPORT/we/want/that/page/1904 -p --proxy %HOSTIP:%PROXYPORT
55</command>
56<features>
57proxy
58</features>
59</client>
60
61#
62# Verify data after the test has been "shot"
63<verify>
64<proxy>
65CONNECT test.1904:%HTTPPORT HTTP/1.1
66Host: test.1904:%HTTPPORT
67User-Agent: curl/%VERSION
68Proxy-Connection: Keep-Alive
69
70</proxy>
71<protocol>
72GET /we/want/that/page/1904 HTTP/1.1
73Host: test.1904:%HTTPPORT
74User-Agent: curl/%VERSION
75Accept: */*
76
77</protocol>
78</verify>
79</testcase>
80