Add test scenario client-tags
[privoxy.git] / tests / cts / client-tags / data / test3
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
26 </name>
27 # Limit the transfer rate for the second request so tag timed out by the time the next test is executed.
28 <command option="no-include">
29 -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' --limit-rate 10 http://%HOSTIP:%HTTPPORT/block-request/
30 </command>
31 </client>
32
33 <verify>
34 <stderr>
35 302
36 200
37 </stderr>
38 </verify>
39 </testcase>