xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 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 | Trailer: chunky-trailer
|
| 17 | Connection: mooo
|
| 18 |
|
| 19 | 40
|
| 20 | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
| 21 | 30
|
| 22 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
|
| 23 | 21;heresatest=moooo
|
| 24 | cccccccccccccccccccccccccccccccc |
| 25 |
|
| 26 | 0
|
| 27 | chunky-trailer: header data
|
| 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 | Trailer: chunky-trailer
|
| 35 | Connection: mooo
|
| 36 |
|
| 37 | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccc |
| 38 | chunky-trailer: header data
|
| 39 | </datacheck> |
| 40 | <servercmd> |
| 41 | writedelay: 10 |
| 42 | </servercmd> |
| 43 | </reply> |
| 44 | |
| 45 | # |
| 46 | # Client-side |
| 47 | <client> |
| 48 | <server> |
| 49 | http |
| 50 | </server> |
| 51 | <name> |
| 52 | HTTP GET with chunked Transfer-Encoding and chunked trailer |
| 53 | </name> |
| 54 | <command> |
| 55 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER -D log/heads%TESTNUMBER |
| 56 | </command> |
| 57 | </client> |
| 58 | |
| 59 | # |
| 60 | # Verify data after the test has been "shot" |
| 61 | <verify> |
| 62 | <protocol> |
| 63 | GET /%TESTNUMBER HTTP/1.1
|
| 64 | Host: %HOSTIP:%HTTPPORT
|
| 65 | User-Agent: curl/%VERSION
|
| 66 | Accept: */*
|
| 67 |
|
| 68 | </protocol> |
| 69 | <file name="log/heads%TESTNUMBER"> |
| 70 | HTTP/1.1 200 funky chunky!
|
| 71 | Server: fakeit/0.9 fakeitbad/1.0
|
| 72 | Transfer-Encoding: chunked
|
| 73 | Trailer: chunky-trailer
|
| 74 | Connection: mooo
|
| 75 |
|
| 76 | chunky-trailer: header data
|
| 77 | </file> |
| 78 | </verify> |
| 79 | |
| 80 | </testcase> |