xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | </keywords> |
| 7 | </info> |
| 8 | # |
| 9 | # Server-side |
| 10 | <reply> |
| 11 | <data nocheck="yes"> |
| 12 | HTTP/1.1 200 funky chunky!
|
| 13 | Server: fakeit/0.9 fakeitbad/1.0
|
| 14 | Transfer-Encoding: chunked
|
| 15 | Trailer: chunky-trailer
|
| 16 | Connection: mooo
|
| 17 | ETag: "asdf"
|
| 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 | </reply> |
| 31 | |
| 32 | # |
| 33 | # Client-side |
| 34 | <client> |
| 35 | <server> |
| 36 | http |
| 37 | </server> |
| 38 | <name> |
| 39 | Try to open a non existing file with --etag-compare should return an error |
| 40 | </name> |
| 41 | <command> |
| 42 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER --etag-compare log/etag%TESTNUMBER |
| 43 | </command> |
| 44 | </client> |
| 45 | |
| 46 | # |
| 47 | # Verify data after the test has been "shot" |
| 48 | <verify> |
| 49 | <errorcode> |
| 50 | 26 |
| 51 | </errorcode> |
| 52 | </verify> |
| 53 | |
| 54 | </testcase> |