xref: /curl/tests/data/test457 (revision ad051e1c)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6chunked Transfer-Encoding
7</keywords>
8</info>
9#
10# Server-side
11<reply>
12<data>
13HTTP/1.1 200 funky chunky!
14Server: fakeit/0.9 fakeitbad/1.0
15Transfer-Encoding: chunked
16Connection: mooo
17
1840
19aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
2030
21bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
2221;heresatest=moooo
23cccccccccccccccccccccccccccccc
24c
25
260
27
28</data>
29<datacheck>
30HTTP/1.1 200 funky chunky!
31Server: fakeit/0.9 fakeitbad/1.0
32Transfer-Encoding: chunked
33Connection: mooo
34
35aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccc
36</datacheck>
37</reply>
38
39#
40# Client-side
41<client>
42<server>
43http
44</server>
45<name>
46chunked Transfer-Encoding with --max-filesize
47</name>
48<command>
49http://%HOSTIP:%HTTPPORT/%TESTNUMBER --max-filesize 143
50</command>
51</client>
52
53#
54# Verify data after the test has been "shot"
55<verify>
56<protocol>
57GET /%TESTNUMBER HTTP/1.1
58Host: %HOSTIP:%HTTPPORT
59User-Agent: curl/%VERSION
60Accept: */*
61
62</protocol>
63# curl: (63) Exceeded the maximum allowed file size (143)
64<errorcode>
6563
66</errorcode>
67</verify>
68
69</testcase>
70