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