Add test scenario client-body-filter-https
[privoxy.git] / tests / cts / client-body-filter-https / data / test8
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 X-Connection: swsclose
16
17 Received your input.
18 </data>
19 </reply>
20
21 <proxy-reply>
22 <data>
23 HTTP/1.1 200 Connection established\r
24 \r
25 HTTP/1.1 200 OK\r
26 Connection: close\r
27 Content-Type: text/html\r
28 X-Connection: swsclose\r
29 \r
30 Received your input.
31 </data>
32 </proxy-reply>
33
34 <client>
35 <server>
36 https
37 </server>
38 <name>
39 Three filters applied to client request reusing the already filtered content. Last filter does not modify content.
40 </name>
41 <features>
42 proxy
43 </features>
44 <command>
45 -d "blafasel" --insecure https://%HOSTIP:%HTTPSPORT/bumfidel-to-tralala/empty-body/%TESTNUMBER
46 </command>
47 </client>
48
49 <verify>
50 <protocol nonewline="yes">
51 POST /bumfidel-to-tralala/empty-body/%TESTNUMBER HTTP/1.1\r
52 Host: %HOSTIP:%HTTPSPORT\r
53 User-Agent: curl/%VERSION\r
54 Accept: */*\r
55 Content-Length: 7\r
56 Content-Type: application/x-www-form-urlencoded\r
57 \r
58 tralala
59 </protocol>
60 </verify>
61 </testcase>