xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | Resume |
| 7 | </keywords> |
| 8 | </info> |
| 9 | |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | <data> |
| 13 | HTTP/1.1 206 Partial Content
|
| 14 | Date: Mon, 13 Nov 2007 13:41:09 GMT
|
| 15 | Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
| 16 | Accept-Ranges: bytes
|
| 17 | Content-Length: 60
|
| 18 | Content-Range: bytes 40-99/100
|
| 19 |
|
| 20 | 012345678 |
| 21 | 012345678 |
| 22 | 012345678 |
| 23 | 012345678 |
| 24 | 012345678 |
| 25 | 012345678 |
| 26 | </data> |
| 27 | |
| 28 | # The file data that exists at the start of the test must be included in |
| 29 | # the verification. |
| 30 | <datacheck> |
| 31 | 012345678 |
| 32 | 012345678 |
| 33 | 012345678 |
| 34 | 012345678 |
| 35 | HTTP/1.1 206 Partial Content
|
| 36 | Date: Mon, 13 Nov 2007 13:41:09 GMT
|
| 37 | Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
| 38 | Accept-Ranges: bytes
|
| 39 | Content-Length: 60
|
| 40 | Content-Range: bytes 40-99/100
|
| 41 |
|
| 42 | 012345678 |
| 43 | 012345678 |
| 44 | 012345678 |
| 45 | 012345678 |
| 46 | 012345678 |
| 47 | 012345678 |
| 48 | </datacheck> |
| 49 | |
| 50 | </reply> |
| 51 | |
| 52 | # Client-side |
| 53 | <client> |
| 54 | <server> |
| 55 | http |
| 56 | </server> |
| 57 | <name> |
| 58 | HTTP GET with resume from end of file |
| 59 | </name> |
| 60 | <command> |
| 61 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C - |
| 62 | </command> |
| 63 | <file name="log/curl%TESTNUMBER.out"> |
| 64 | 012345678 |
| 65 | 012345678 |
| 66 | 012345678 |
| 67 | 012345678 |
| 68 | </file> |
| 69 | </client> |
| 70 | |
| 71 | # Verify data after the test has been "shot" |
| 72 | <verify> |
| 73 | <protocol> |
| 74 | GET /%TESTNUMBER HTTP/1.1
|
| 75 | Host: %HOSTIP:%HTTPPORT
|
| 76 | Range: bytes=40-
|
| 77 | User-Agent: curl/%VERSION
|
| 78 | Accept: */*
|
| 79 |
|
| 80 | </protocol> |
| 81 | </verify> |
| 82 | </testcase> |