xref: /curl/tests/data/test207 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6CURLE_PARTIAL_FILE
7FAILURE
8chunked Transfer-Encoding
9</keywords>
10</info>
11#
12# Server-side
13<reply>
14<data>
15HTTP/1.1 200 funky chunky! swsclose
16Server: fakeit/0.9 fakeitbad/1.0
17Transfer-Encoding: chunked
18Connection: mooo
19
2041
21aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
22
23</data>
24<datacheck>
25HTTP/1.1 200 funky chunky! swsclose
26Server: fakeit/0.9 fakeitbad/1.0
27Transfer-Encoding: chunked
28Connection: mooo
29
30aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
31</datacheck>
32</reply>
33
34#
35# Client-side
36<client>
37<server>
38http
39</server>
40<name>
41HTTP GET with chunked Transfer-Encoding closed prematurely
42</name>
43<command>
44http://%HOSTIP:%HTTPPORT/%TESTNUMBER
45</command>
46</client>
47
48#
49# Verify data after the test has been "shot"
50<verify>
51<protocol>
52GET /%TESTNUMBER HTTP/1.1
53Host: %HOSTIP:%HTTPPORT
54User-Agent: curl/%VERSION
55Accept: */*
56
57</protocol>
58
59# curl: (18) transfer closed with outstanding read data remaining
60# 18 == CURLE_PARTIAL_FILE
61# 56 == CURLE_RECV_ERROR
62<errorcode>
63%if hyper
6456
65%else
6618
67%endif
68</errorcode>
69</verify>
70</testcase>
71