Add test scenario client-body-filter-https
[privoxy.git] / tests / cts / client-body-filter-https / data / test4
1 <testcase>
2 <info>
3 <keywords>
4 HTTPS
5 HTTP POST
6 client-body-filter
7 </keywords>
8 </info>
9
10 <reply>
11 <data>
12 HTTP/1.1 200 OK
13 Connection: close
14 Content-Type: text/html
15
16 Received your input.
17
18 Will keep the connection open despite the "Connection: Close" header.
19 </data>
20 </reply>
21
22 <proxy-reply>
23 <data>
24 HTTP/1.1 200 Connection established\r
25 \r
26 HTTP/1.1 200 OK\r
27 Connection: close\r
28 Content-Type: text/html\r
29 \r
30 Received your input.
31
32 Will keep the connection open despite the "Connection: Close" header.
33 </data>
34 </proxy-reply>
35
36 <client>
37 <server>
38 https
39 </server>
40 <name>
41 Using client-body-filter{blafasel-to-bumfidel} with server connection that times out after delivering the response
42 </name>
43 <features>
44 proxy
45 </features>
46 <command>
47 -d "blafasel" --insecure https://%HOSTIP:%HTTPSPORT/%TESTNUMBER
48 </command>
49 </client>
50
51 <verify>
52 <protocol nonewline="yes">
53 POST /%TESTNUMBER HTTP/1.1\r
54 Host: %HOSTIP:%HTTPSPORT\r
55 User-Agent: curl/%VERSION\r
56 Accept: */*\r
57 Content-Length: 8\r
58 Content-Type: application/x-www-form-urlencoded\r
59 \r
60 bumfidel
61 </protocol>
62 </verify>
63 </testcase>