Add test scenario chunked-transfer-encoding-https
[privoxy.git] / tests / cts / chunked-transfer-encoding-https / data / test11
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 chunked transfer encoding
7 </keywords>
8 </info>
9
10 <reply>
11 <data>
12 HTTP/1.1 200 OK\r
13 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
14 Connection: close\r
15 Content-Type: text/html\r
16 Transfer-Encoding: chunked\r
17 X-Control: swsclose\r
18 \r
19 100\r
20 %repeat[255 x A]%
21 \r
22 100\r
23 %repeat[255 x B]%
24 \r
25 100\r
26 %repeat[255 x C]%
27 \r
28 100\r
29 %repeat[1000 x D]%
30 </data>
31 </reply>
32
33 <proxy-reply>
34 <data>
35 HTTP/1.1 200 Connection established\r
36 \r
37 HTTP/1.1 200 OK\r
38 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
39 Connection: close\r
40 Content-Type: text/html\r
41 Transfer-Encoding: chunked\r
42 X-Control: swsclose\r
43 \r
44 100\r
45 %repeat[255 x A]%
46 \r
47 100\r
48 %repeat[255 x B]%
49 \r
50 100\r
51 %repeat[255 x C]%
52 \r
53 100\r
54 %repeat[1000 x D]%
55 </data>
56 </proxy-reply>
57
58 <client>
59 <server>
60 https
61 </server>
62 <name>
63 Chunked transfer encoding - Multiple chunks, chunk at the end too big.
64 </name>
65 <features>
66 proxy
67 </features>
68 <command>
69 --insecure --raw https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER
70 </command>
71 </client>
72
73 <verify>
74 <protocol>
75 GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1\r
76 Host: %HOSTIP:%HTTPSPORT\r
77 User-Agent: curl/%VERSION\r
78 Accept: */*\r
79 \r
80 </protocol>
81 <errorcode>
82 56
83 </errorcode>
84 </verify>
85 </testcase>