Add test scenario content-filters
[privoxy.git] / tests / cts / content-filters / data / test4
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 filter content-cookies
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 strings the content-cookies filter should modify:
19
20 # pcrs command 1:
21
22 blafasel.cookie=tralala=12
23 blafasel.cookie='aab=keep-me-unmodified'
24
25 # pcrs command 2:
26
27 <meta http-equiv="set-cookie" content="blafasel=123">
28 <meta http-equiv='set-cookie' content="blafasel=123">
29 </data>
30 </reply>
31
32 <proxy-reply>
33 <data>
34 HTTP/1.1 200 OK\r
35 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
36 Connection: close\r
37 Content-Type: text/html\r
38 X-Control: swsclose\r
39 Content-Length: 215\r
40 \r
41 # Here are some strings the content-cookies filter should modify:
42
43 # pcrs command 1:
44
45 ZappedCookie=tralala=12
46 blafasel.cookie='aab=keep-me-unmodified'
47
48 # pcrs command 2:
49
50 <!-- ZappedCookie -->
51 <!-- ZappedCookie -->
52 </data>
53 </proxy-reply>
54
55
56 <client>
57 <server>
58 http
59 </server>
60 <name>
61 +filter{content-cookies}
62 </name>
63 <features>
64 proxy
65 </features>
66 <command>
67 http://%HOSTIP:%HTTPPORT/content-cookies/%TESTNUMBER
68 </command>
69 </client>
70
71 <verify>
72 <protocol>
73 GET /content-cookies/%TESTNUMBER HTTP/1.1\r
74 Host: %HOSTIP:%HTTPPORT\r
75 User-Agent: curl/%VERSION\r
76 Accept: */*\r
77 Connection: close\r
78 \r
79 </protocol>
80 </verify>
81 </testcase>