1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6HTTP CONNECT
7proxytunnel
8</keywords>
9</info>
10
11#
12# Server-side
13<reply>
14<data>
15HTTP/1.1 200 OK
16Date: Thu, 09 Nov 2010 14:49:00 GMT
17Server: test-server/fake swsclose
18Content-Type: text/html
19Funny-head: yesyes
20Content-Length: 9
21
22contents
23</data>
24<connect>
25HTTP/1.1 200 Mighty fine indeed
26
27</connect>
28<datacheck>
29HTTP/1.1 200 Mighty fine indeed
30
31HTTP/1.1 200 OK
32Date: Thu, 09 Nov 2010 14:49:00 GMT
33Server: test-server/fake swsclose
34Content-Type: text/html
35Funny-head: yesyes
36Content-Length: 9
37
38contents
39</datacheck>
40</reply>
41
42#
43# Client-side
44<client>
45<server>
46http
47http-proxy
48</server>
49 <name>
50HTTP over proxytunnel using POST
51 </name>
52 <command>
53http://test.95:%HTTPPORT/we/want/that/page/95 -p -x %HOSTIP:%PROXYPORT -d "datatopost=ohthatsfunyesyes"
54</command>
55</client>
56
57#
58# Verify data after the test has been "shot"
59<verify>
60<strip>
61^User-Agent:.*
62</strip>
63<proxy>
64CONNECT test.95:%HTTPPORT HTTP/1.1
65User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
66Host: test.95:%HTTPPORT
67Proxy-Connection: Keep-Alive
68
69</proxy>
70<protocol nonewline="yes">
71POST /we/want/that/page/95 HTTP/1.1
72User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
73Host: test.95:%HTTPPORT
74Accept: */*
75Content-Length: 27
76Content-Type: application/x-www-form-urlencoded
77
78datatopost=ohthatsfunyesyes
79</protocol>
80</verify>
81</testcase>
82