Add test scenario content-filters
[privoxy.git] / tests / cts / content-filters / data / test12
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 filter tiny-textforms
7 </keywords>
8 </info>
9
10 <reply>
11 <data>
12 HTTP/1.1 200 OK\r
13 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
14 Connection: close\r
15 Content-Type: text/html\r
16 X-Control: swsclose\r
17 \r
18 # Here are some tiny textforms the tiny-textforms filter should filter:
19
20 # pcrs command 1:
21
22 <textarea rows="10" cols="10">
23 <textarea cols="10" rows="10">
24 <textarea rows='5' cols="5">
25 <textarea cols='7' rows='7'>
26
27 <!-- The filter actual makes large forms tynier ... -->
28 <textarea rows="100" cols="100">
29 <textarea cols="1000" rows="1000">
30
31 # pcrs command 2:
32
33 <textarea wrap="hard">
34 <textarea wrap='hard'>
35 </data>
36 </reply>
37
38 <proxy-reply>
39 <data>
40 HTTP/1.1 200 OK\r
41 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
42 Connection: close\r
43 Content-Type: text/html\r
44 X-Control: swsclose\r
45 Content-Length: 379\r
46 \r
47 # Here are some tiny textforms the tiny-textforms filter should filter:
48
49 # pcrs command 1:
50
51 <textarea rows="40" cols="80">
52 <textarea rows="40" cols="80">
53 <textarea rows="40" cols="80">
54 <textarea rows='40' cols='80'>
55
56 <!-- The filter actual makes large forms tynier ... -->
57 <textarea rows="40" cols="80">
58 <textarea rows="40" cols="80">
59
60 # pcrs command 2:
61
62 <textarea >
63 <textarea >
64 </data>
65 </proxy-reply>
66
67 <client>
68 <server>
69 http
70 </server>
71 <name>
72 +filter{tiny-textforms}
73 </name>
74 <features>
75 proxy
76 </features>
77 <command>
78 http://%HOSTIP:%HTTPPORT/tiny-textforms/%TESTNUMBER
79 </command>
80 </client>
81
82 <verify>
83 <protocol>
84 GET /tiny-textforms/%TESTNUMBER HTTP/1.1\r
85 Host: %HOSTIP:%HTTPPORT\r
86 User-Agent: curl/%VERSION\r
87 Accept: */*\r
88 Connection: close\r
89 \r
90 </protocol>
91 </verify>
92 </testcase>