Debian Codegraph @

deps/curl/tests/data/test95

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