2007-01-23 10:25:56 +08:00
|
|
|
<testcase>
|
2012-11-13 21:02:42 +08:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
2014-04-03 17:46:13 +08:00
|
|
|
CURLE_PARTIAL_FILE
|
|
|
|
FAILURE
|
2017-05-14 04:35:15 +08:00
|
|
|
chunked Transfer-Encoding
|
2012-11-13 21:02:42 +08:00
|
|
|
</keywords>
|
|
|
|
</info>
|
2004-12-03 17:31:25 +08:00
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 funky chunky! swsclose
|
|
|
|
Server: fakeit/0.9 fakeitbad/1.0
|
|
|
|
Transfer-Encoding: chunked
|
|
|
|
Connection: mooo
|
|
|
|
|
|
|
|
41
|
|
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
|
|
|
|
|
|
|
</data>
|
|
|
|
<datacheck>
|
|
|
|
HTTP/1.1 200 funky chunky! swsclose
|
|
|
|
Server: fakeit/0.9 fakeitbad/1.0
|
|
|
|
Transfer-Encoding: chunked
|
|
|
|
Connection: mooo
|
|
|
|
|
|
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
|
|
|
</datacheck>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
2017-05-14 04:35:15 +08:00
|
|
|
HTTP GET with chunked Transfer-Encoding closed prematurely
|
2004-12-03 17:31:25 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
2004-12-03 17:31:25 +08:00
|
|
|
</command>
|
2005-01-26 05:45:03 +08:00
|
|
|
</client>
|
2004-12-03 17:31:25 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2007-09-15 03:32:31 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2004-12-03 17:31:25 +08:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
|
|
|
|
# curl: (18) transfer closed with outstanding read data remaining
|
|
|
|
# 18 == CURLE_PARTIAL_FILE
|
|
|
|
<errorcode>
|
|
|
|
18
|
|
|
|
</errorcode>
|
|
|
|
</verify>
|
2007-01-23 10:25:56 +08:00
|
|
|
</testcase>
|