Add test scenario chunked-transfer-encoding-https
[privoxy.git] / tests / cts / chunked-transfer-encoding-https / data / test10
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 Bogus data.\r
29 </data>
30 </reply>
31
32 <proxy-reply>
33 <data>
34 HTTP/1.1 200 Connection established\r
35 \r
36 HTTP/1.1 200 OK\r
37 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
38 Connection: close\r
39 Content-Type: text/html\r
40 Transfer-Encoding: chunked\r
41 X-Control: swsclose\r
42 \r
43 100\r
44 %repeat[255 x A]%
45 \r
46 100\r
47 %repeat[255 x B]%
48 \r
49 100\r
50 %repeat[255 x C]%
51 \r
52 Bogus data.\r
53 </data>
54 </proxy-reply>
55
56 <client>
57 <server>
58 https
59 </server>
60 <name>
61 Chunked transfer encoding - Multiple chunks, bogus data instead of last chunk.
62 </name>
63 <features>
64 proxy
65 </features>
66 <command>
67 --insecure --raw https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER
68 </command>
69 </client>
70
71 <verify>
72 <protocol>
73 GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1\r
74 Host: %HOSTIP:%HTTPSPORT\r
75 User-Agent: curl/%VERSION\r
76 Accept: */*\r
77 \r
78 </protocol>
79 <errorcode>
80 18
81 </errorcode>
82 </verify>
83 </testcase>