1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 chunked Transfer-Encoding 7 </keywords> 8 </info> 9 # 10 # Server-side 11 <reply> 12 <data> 13 HTTP/1.1 200 funky chunky! 14 Server: fakeit/0.9 fakeitbad/1.0 15 Transfer-Encoding: chunked 16 Connection: mooo 17 18 40 19 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 20 30 21 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 22 21;heresatest=moooo 23 cccccccccccccccccccccccccccccccc 24 25 0 26 chunky-trailer: header data 27 another-header: yes 28 29 </data> 30 <datacheck> 31 HTTP/1.1 200 funky chunky! 32 Server: fakeit/0.9 fakeitbad/1.0 33 Transfer-Encoding: chunked 34 Connection: mooo 35 36 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccc 37 </datacheck> 38 </reply> 39 40 # 41 # Client-side 42 <client> 43 <server> 44 http 45 </server> 46 <name> 47 HTTP GET with chunked trailer without Trailer: 48 </name> 49 <command> 50 http://%HOSTIP:%HTTPPORT/1116 -D log/heads1116 51 </command> 52 </client> 53 54 # 55 # Verify data after the test has been "shot" 56 <verify> 57 <strip> 58 ^User-Agent:.* 59 </strip> 60 <protocol> 61 GET /1116 HTTP/1.1 62 Host: %HOSTIP:%HTTPPORT 63 Accept: */* 64 65 </protocol> 66 <file name="log/heads1116"> 67 HTTP/1.1 200 funky chunky! 68 Server: fakeit/0.9 fakeitbad/1.0 69 Transfer-Encoding: chunked 70 Connection: mooo 71 72 chunky-trailer: header data 73 another-header: yes 74 </file> 75 </verify> 76 77 </testcase> 78