tests/cts: When there's lots of POST data, read it from a file
[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 @log/post-data-%TESTNUMBER http://%HOSTIP:%HTTPPORT/second-request/%TESTNUMBER
43 </command>
44 <file name="log/post-data-%TESTNUMBER">
45 blafasel%repeat[20000 x padding]%
46 </file>
47 </client>
48
49 <verify>
50 <protocol nonewline="yes">
51 GET /first-request/%TESTNUMBER HTTP/1.1\r
52 Host: %HOSTIP:%HTTPPORT\r
53 User-Agent: curl/%VERSION\r
54 Accept: */*\r
55 Connection: close\r
56 \r
57 POST /second-request/%TESTNUMBER HTTP/1.1\r
58 Host: %HOSTIP:%HTTPPORT\r
59 User-Agent: curl/%VERSION\r
60 Accept: */*\r
61 Content-Length: 140008\r
62 Content-Type: application/x-www-form-urlencoded\r
63 Connection: close\r
64 \r
65 blafasel%repeat[20000 x padding]%
66 </protocol>
67 </verify>
68 </testcase>