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