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