Add test scenario client-tags
[privoxy.git] / tests / cts / client-tags / data / test4
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 </keywords>
7 </info>
8
9 <reply>
10 <data>
11 HTTP/1.1 200 OK
12 Connection: close
13 Content-Type: text/html
14 X-Connection: swsclose
15
16 Received your input.
17 </data>
18 </reply>
19
20 <client>
21 <server>
22 http
23 </server>
24 <name>
25 Enabling client-tag to disable block action for follow-up request with trusted Referer and disabling it again
26 </name>
27 <command option="no-include">
28 -s --write-out '%{stderr}%{response_code}\n' --referer "http://p.p/client-tags" 'http://p.p/toggle-client-tag?tag=overrule-blocks&toggle-state=1&expires=1' --next -s --include --output log/curl%TESTNUMBER.out --write-out '%{stderr}%{response_code}\n' http://%HOSTIP:%HTTPPORT/block-request/ --next -s --write-out '%{stderr}%{response_code}\n' --referer "http://p.p/client-tags" 'http://p.p/toggle-client-tag?tag=overrule-blocks&toggle-state=0&expires=1' --next --write-out '%{stderr}%{response_code}\n' http://%HOSTIP:%HTTPPORT/block-request/
29 </command>
30 </client>
31
32 <verify>
33 <stderr>
34 302
35 200
36 302
37 403
38 </stderr>
39 </verify>
40 </testcase>