Add test scenario client-body-filter
[privoxy.git] / tests / cts / client-body-filter / data / test12
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 X-Connection: swsclose
16
17 Received your first request.
18 </data>
19 <data1>
20 HTTP/1.1 200 OK
21 Connection: close
22 Content-Type: text/html
23 X-Connection: swsclose
24
25 Received your second request.
26 </data1>
27 </reply>
28
29 <client>
30 <server>
31 http
32 </server>
33 <name>
34 Attempt to apply client-body-filter{blafasel-to-bumfidel} to client request that is too large to buffer.
35 </name>
36 <features>
37 proxy
38 </features>
39 # Sending the first request to appease the test framework.
40 # We mainly care about the second request which is too large for Privoxy to buffer it.
41 <command>
42 http://%HOSTIP:%HTTPPORT/first-request/%TESTNUMBER --next -d "blafasel%repeat[20000 x padding]%" http://%HOSTIP:%HTTPPORT/second-request/%TESTNUMBER
43 </command>
44 </client>
45
46 <verify>
47 <protocol nonewline="yes">
48 GET /first-request/%TESTNUMBER HTTP/1.1\r
49 Host: %HOSTIP:%HTTPPORT\r
50 User-Agent: curl/%VERSION\r
51 Accept: */*\r
52 Connection: close\r
53 \r
54 POST /second-request/%TESTNUMBER HTTP/1.1\r
55 Host: %HOSTIP:%HTTPPORT\r
56 User-Agent: curl/%VERSION\r
57 Accept: */*\r
58 Content-Length: 140008\r
59 Content-Type: application/x-www-form-urlencoded\r
60 Connection: close\r
61 \r
62 blafasel%repeat[20000 x padding]%
63 </protocol>
64 </verify>
65 </testcase>