Add test scenario chunked-transfer-encoding
[privoxy.git] / tests / cts / chunked-transfer-encoding / data / test37
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 chunked transfer encoding
7 </keywords>
8 </info>
9
10 <reply>
11 <data nonewline="yes">
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 \r
18 88888888888\r
19 The chunk-size for this chunk causes an integer overflow.
20 swsclose
21 </data>
22 </reply>
23 <reply>
24
25 <client>
26 <server>
27 http
28 </server>
29 <name>
30 Chunked transfer encoding - Invalid chunk-size that causes integer overflow.
31 </name>
32 <features>
33 proxy
34 </features>
35 <command>
36 --raw http://%HOSTIP:%HTTPPORT/no-filter/chunked-content/%TESTNUMBER
37 </command>
38 </client>
39
40 <verify>
41 <protocol>
42 GET /no-filter/chunked-content/%TESTNUMBER HTTP/1.1\r
43 Host: %HOSTIP:%HTTPPORT\r
44 User-Agent: curl/%VERSION\r
45 Accept: */*\r
46 \r
47 </protocol>
48 <errorcode>
49 18
50 </errorcode>
51 </verify>
52 </testcase>