Add test scenario client-body-filter
[privoxy.git] / tests / cts / client-body-filter / data / test4
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP POST
6 client-body-filter
7 </keywords>
8 </info>
9
10 <reply>
11 <data>
12 HTTP/1.1 200 OK
13 Connection: close
14 Content-Type: text/html
15
16 Received your input.
17
18 Will keep the connection open despite the "Connection: Close" header.
19 </data>
20 </reply>
21
22 <client>
23 <server>
24 http
25 </server>
26 <name>
27 Using client-body-filter{blafasel-to-bumfidel} with server connection that times out after delivering the response
28 </name>
29 <features>
30 proxy
31 </features>
32 <command>
33 -d "blafasel" http://%HOSTIP:%HTTPPORT/%TESTNUMBER
34 </command>
35 </client>
36
37 <verify>
38 <protocol nonewline="yes">
39 POST /%TESTNUMBER HTTP/1.1\r
40 Host: %HOSTIP:%HTTPPORT\r
41 User-Agent: curl/%VERSION\r
42 Accept: */*\r
43 Content-Length: 8\r
44 Content-Type: application/x-www-form-urlencoded\r
45 Connection: close\r
46 \r
47 bumfidel
48 </protocol>
49 </verify>
50 </testcase>