1<testcase>
2#
3# Server-side
4<reply>
5<data>
6HTTP/1.1 200 funky chunky! swsclose
7Server: fakeit/0.9 fakeitbad/1.0
8Transfer-Encoding: chunked
9Connection: mooo
10
1141
12aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
13
14</data>
15<datacheck>
16HTTP/1.1 200 funky chunky! swsclose
17Server: fakeit/0.9 fakeitbad/1.0
18Transfer-Encoding: chunked
19Connection: mooo
20
21aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
22</datacheck>
23</reply>
24
25#
26# Client-side
27<client>
28<server>
29http
30</server>
31 <name>
32HTTP GET with chunked Transfer-Encoding closed pre-maturely
33 </name>
34 <command>
35http://%HOSTIP:%HTTPPORT/207
36</command>
37</client>
38
39#
40# Verify data after the test has been "shot"
41<verify>
42<strip>
43^User-Agent:.*
44</strip>
45<protocol>
46GET /207 HTTP/1.1
47Host: %HOSTIP:%HTTPPORT
48Accept: */*
49
50</protocol>
51
52# curl: (18) transfer closed with outstanding read data remaining
53# 18 == CURLE_PARTIAL_FILE
54<errorcode>
5518
56</errorcode>
57</verify>
58</testcase>
59