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