Add test scenario chunked-transfer-encoding-https
[privoxy.git] / tests / cts / chunked-transfer-encoding-https / data / test22
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 0\r
20 \r
21 </data>
22 </reply>
23
24 <proxy-reply>
25 <data>
26 HTTP/1.1 200 Connection established\r
27 \r
28 HTTP/1.1 200 OK\r
29 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
30 Connection: close\r
31 Content-Type: text/html\r
32 X-Control: swsclose\r
33 \r
34 </data>
35 </proxy-reply>
36
37 <client>
38 <server>
39 https
40 </server>
41 <name>
42 Chunked transfer encoding - Only last chunk, no actual data.
43 </name>
44 <features>
45 proxy
46 </features>
47 <command>
48 --insecure https://%HOSTIP:%HTTPSPORT/chunked-transfer-encoding/%TESTNUMBER
49 </command>
50 </client>
51
52 <verify>
53 <protocol>
54 GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1\r
55 Host: %HOSTIP:%HTTPSPORT\r
56 User-Agent: curl/%VERSION\r
57 Accept: */*\r
58 \r
59 </protocol>
60 <errorcode>
61 0
62 </errorcode>
63 </verify>
64 </testcase>