• 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</client>
57
58#
59# Verify data after the test has been "shot"
60<verify>
61<strip>
62^User-Agent:.*
63</strip>
64<proxy>
65CONNECT test.1904:%HTTPPORT HTTP/1.1
66Host: test.1904:%HTTPPORT
67User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
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/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
75Accept: */*
76
77</protocol>
78</verify>
79</testcase>
80