Add test scenario client-body-filter-https
[privoxy.git] / tests / cts / client-body-filter-https / data / test14
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 <data1>
39 HTTP/1.1 200 OK\r
40 Connection: close\r
41 Content-Type: text/html\r
42 X-Connection: swsclose\r
43 \r
44 Received your input.
45 </data1>
46 </proxy-reply>
47
48 <client>
49 <server>
50 https
51 </server>
52 <name>
53 Applying client-body-filter{blafasel-to-bumfidel} to client request on a reused connection that is too large to read at once (based on test 5)
54 </name>
55 <features>
56 proxy
57 </features>
58 <command>
59 --insecure https://%HOSTIP:%HTTPSPORT/%TESTNUMBER --next -d "blafasel%repeat[5000 x padding]%" --insecure https://%HOSTIP:%HTTPSPORT/%TESTNUMBER
60 </command>
61 </client>
62
63 <verify>
64 <protocol nonewline="yes">
65 GET /%TESTNUMBER HTTP/1.1\r
66 Host: %HOSTIP:%HTTPSPORT\r
67 User-Agent: curl/%VERSION\r
68 Accept: */*\r
69 \r
70 POST /%TESTNUMBER HTTP/1.1\r
71 Host: %HOSTIP:%HTTPSPORT\r
72 User-Agent: curl/%VERSION\r
73 Accept: */*\r
74 Content-Length: 35008\r
75 Content-Type: application/x-www-form-urlencoded\r
76 \r
77 bumfidel%repeat[5000 x padding]%
78 </protocol>
79 </verify>
80 </testcase>