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