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