Add tests for destination rewrite
[privoxy.git] / tests / cts / rewrite-behind-client-back / data / test1
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 Content-Length: 29
15
16 Not actually used.
17 </data>
18 </reply>
19
20 <proxy-reply>
21 <data>
22 HTTP/1.1 400 Malformed request after rewriting
23 Content-Type: text/plain
24 Connection: close
25
26 Bad request. Messed up with header filters.
27 </data>
28 </proxy-reply>
29
30
31 <client>
32 <server>
33 none
34 </server>
35 <name>
36 Rewrite behind the client's back: invalid upgrade to https
37 </name>
38 <command>
39 http://%HOSTIP/%TESTNUMBER-upgrade-to-https
40 </command>
41 </client>
42
43 <verify>
44 </verify>
45 </testcase>