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