Debian Codegraph @

curl/tests/data/test95

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