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: W/"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 | Check if --etag-save saved correct etag to a file |
| 40 | </name> |
| 41 | <command> |
| 42 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER --etag-save log/etag%TESTNUMBER |
| 43 | </command> |
| 44 | </client> |
| 45 | |
| 46 | # |
| 47 | # Verify data after the test has been "shot" |
| 48 | <verify> |
| 49 | <protocol> |
| 50 | GET /%TESTNUMBER HTTP/1.1
|
| 51 | Host: %HOSTIP:%HTTPPORT
|
| 52 | User-Agent: curl/%VERSION
|
| 53 | Accept: */*
|
| 54 |
|
| 55 | </protocol> |
| 56 | <file name="log/etag%TESTNUMBER"> |
| 57 | W/"asdf" |
| 58 | </file> |
| 59 | </verify> |
| 60 | |
| 61 | </testcase> |