Add test scenario blocked-https-requests
[privoxy.git] / tests / cts / blocked-https-requests / data / test1
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 <client>
34 <server>
35 https
36 </server>
37 <name>
38 Blocked https request followed by unblocked request for the same host which means the connection can't be reused
39 </name>
40 <command>
41 --insecure -s --write-out '%{stderr}%{response_code}\n' https://%HOSTIP:%HTTPSPORT/ads/%TESTNUMBER --output log/curl1.out https://%HOSTIP:%HTTPSPORT/%TESTNUMBER
42 </command>
43 </client>
44
45 <verify>
46 <protocol>
47 GET /%TESTNUMBER HTTP/1.1\r
48 Host: %HOSTIP:%HTTPSPORT\r
49 User-Agent: curl/%VERSION\r
50 Accept: */*\r
51 \r
52 </protocol>
53 <stderr>
54 403
55 200
56 </stderr>
57 </verify>
58 </testcase>