xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | Content-Range |
| 7 | Resume |
| 8 | Range |
| 9 | </keywords> |
| 10 | </info> |
| 11 | |
| 12 | # Server-side |
| 13 | <reply> |
| 14 | <data nocheck="yes"> |
| 15 | HTTP/1.1 200 OK
|
| 16 | Content-Type: text/html
|
| 17 | Content-Length: 5
|
| 18 |
|
| 19 | body |
| 20 | </data> |
| 21 | |
| 22 | <data1 nocheck="yes"> |
| 23 | HTTP/1.1 200 OK
|
| 24 | Content-Type: text/html
|
| 25 | Content-Length: 5
|
| 26 | Content-Range: bytes 3/7
|
| 27 |
|
| 28 | body |
| 29 | </data1> |
| 30 | |
| 31 | <data2 nocheck="yes"> |
| 32 | HTTP/1.1 416 Requested Range Not Satisfiable
|
| 33 | Content-Type: text/html
|
| 34 | Content-Length: 5
|
| 35 |
|
| 36 | body |
| 37 | </data2> |
| 38 | |
| 39 | <data3 nocheck="yes"> |
| 40 | HTTP/1.1 416 Requested Range Not Satisfiable
|
| 41 | Content-Type: text/html
|
| 42 | Content-Length: 5
|
| 43 | Content-Range: bytes */2
|
| 44 |
|
| 45 | body |
| 46 | </data3> |
| 47 | </reply> |
| 48 | |
| 49 | # Client-side |
| 50 | <client> |
| 51 | <server> |
| 52 | http |
| 53 | </server> |
| 54 | <tool> |
| 55 | lib%TESTNUMBER |
| 56 | </tool> |
| 57 | <name> |
| 58 | HTTP resume/range fail range-error content-range combinations |
| 59 | </name> |
| 60 | <command> |
| 61 | http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER |
| 62 | </command> |
| 63 | </client> |
| 64 | |
| 65 | # Verify data after the test has been "shot" |
| 66 | <verify> |
| 67 | <stdout> |
| 68 | 0 |
| 69 | </stdout> |
| 70 | </verify> |
| 71 | </testcase> |