Add test scenario header-filters
[privoxy.git] / tests / cts / header-filters / data / test3
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 server-header-filter xml-to-html
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: application/xhtml+xml; blafasel\r
16 Content-Type: application/xml; blafasel\r
17 Content-Type: application/xml\r
18 Content-Type: text/xml; blafasel\r
19 Content-Type: text/xml\r
20 X-Control: swsclose\r
21 Content-Length: 0\r
22 \r
23 </data>
24 </reply>
25
26 <proxy-reply>
27 <data>
28 HTTP/1.1 200 OK\r
29 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
30 Connection: close\r
31 Content-Type: text/html; blafasel\r
32 Content-Type: text/html; blafasel\r
33 Content-Type: text/html\r
34 Content-Type: text/html; blafasel\r
35 Content-Type: text/html\r
36 X-Control: swsclose\r
37 Content-Length: 0\r
38 \r
39 </data>
40 </proxy-reply>
41
42 <client>
43 <server>
44 http
45 </server>
46 <name>
47 +server-header-filter{xml-to-html}
48 </name>
49 <features>
50 proxy
51 </features>
52 <command>
53 --head http://%HOSTIP:%HTTPPORT/xml-to-html/%TESTNUMBER
54 </command>
55 </client>
56
57 <verify>
58 <protocol>
59 HEAD /xml-to-html/%TESTNUMBER HTTP/1.1\r
60 Host: %HOSTIP:%HTTPPORT\r
61 User-Agent: curl/%VERSION\r
62 Accept: */*\r
63 Connection: close\r
64 \r
65 </protocol>
66 </verify>
67 </testcase>