test1540 (906B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 CURLPAUSE_RECV 7 chunked Transfer-Encoding 8 Trailer: 9 DELAY 10 </keywords> 11 </info> 12 13 # Server-side 14 <reply> 15 <data> 16 HTTP/1.1 200 OK swsclose 17 Transfer-Encoding: chunked 18 Trailer: MyCoolTrailerHeader 19 20 4 21 data 22 5 23 d474 24 25 0 26 MyCoolTrailerHeader: amazingtrailer 27 28 </data> 29 <datacheck> 30 HTTP/1.1 200 OK swsclose 31 Transfer-Encoding: chunked 32 Trailer: MyCoolTrailerHeader 33 34 Got bytes but pausing! 35 datad474 36 MyCoolTrailerHeader: amazingtrailer 37 </datacheck> 38 <servercmd> 39 writedelay: 10 40 </servercmd> 41 </reply> 42 # Client-side 43 <client> 44 <server> 45 http 46 </server> 47 <tool> 48 lib%TESTNUMBER 49 </tool> 50 <name> 51 chunked with trailers and pausing the receive 52 </name> 53 <command> 54 http://%HOSTIP:%HTTPPORT/%TESTNUMBER 55 </command> 56 </client> 57 58 # Verify data after the test has been "shot" 59 <verify> 60 <protocol> 61 GET /%TESTNUMBER HTTP/1.1 62 Host: %HOSTIP:%HTTPPORT 63 Accept: */* 64 65 </protocol> 66 </verify> 67 </testcase>