Add tests for rewrite behind the client's back with https
[privoxy.git] / tests / cts / rewrite-behind-client-back-https / data / test3
1 <testcase>
2 <info>
3 <keywords>
4 HTTPS
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: 18
15
16 Here's your data.
17 </data>
18 </reply>
19
20 <proxy-reply>
21 <data>
22 HTTP/1.1 200 Connection established
23
24 HTTP/1.1 200 OK
25 Connection: close
26 Content-Type: text/html
27 Content-Length: 18
28
29 Here's your data.
30 </data>
31 </proxy-reply>
32
33
34 <client>
35 <server>
36 https
37 </server>
38 <name>
39 Rewrite host behind the client's back
40 </name>
41 <command>
42 --insecure https://www.example.org/%TESTNUMBER-%HOSTIP:%HTTPSPORT
43 </command>
44 </client>
45
46 <verify>
47 <protocol>
48 GET /%TESTNUMBER HTTP/1.1\r
49 Host: www.example.org\r
50 User-Agent: curl/%VERSION\r
51 Accept: */*\r
52 \r
53 </protocol>
54 </verify>
55 </testcase>