| 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 | FAILURE | 
 | 8 | </keywords> | 
 | 9 | </info> | 
 | 10 | # Server-side | 
 | 11 | <reply> | 
 | 12 | <data nocheck="yes"> | 
 | 13 | HTTP/1.0 200 Mooo | 
 | 14 | Date: Mon, 13 Nov 2000 13:41:09 GMT | 
 | 15 | Server: myown/1.0 | 
 | 16 | Connection: close | 
 | 17 |  | 
 | 18 | todelooooo lalalala yada yada, we know nothing about ranges ;-) | 
 | 19 | </data> | 
 | 20 | </reply> | 
 | 21 |  | 
 | 22 | # Client-side | 
 | 23 | <client> | 
 | 24 | <server> | 
 | 25 | http | 
 | 26 | </server> | 
 | 27 |  <name> | 
 | 28 | HTTP resume request without server supporting it | 
 | 29 |  </name> | 
 | 30 |  <command option="no-output"> | 
 | 31 | http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -C - --no-include -o log/fewl%TESTNUMBER.txt | 
 | 32 | </command> | 
 | 33 | <file name="log/fewl%TESTNUMBER.txt"> | 
 | 34 | This text is here to simulate a partly downloaded file to resume | 
 | 35 | download on. | 
 | 36 | </file> | 
 | 37 | </client> | 
 | 38 |  | 
 | 39 | # Verify data after the test has been "shot" | 
 | 40 | <verify> | 
 | 41 | <errorcode> | 
 | 42 | 33 | 
 | 43 | </errorcode> | 
 | 44 | <protocol> | 
 | 45 | GET /want/%TESTNUMBER HTTP/1.1
 | 
 | 46 | Host: %HOSTIP:%HTTPPORT
 | 
 | 47 | Range: bytes=78-
 | 
 | 48 | User-Agent: curl/%VERSION
 | 
 | 49 | Accept: */*
 | 
 | 50 | 
 | 
 | 51 | </protocol> | 
 | 52 |  | 
 | 53 | # the download target file must remain untouched | 
 | 54 | <file name="log/fewl%TESTNUMBER.txt"> | 
 | 55 | This text is here to simulate a partly downloaded file to resume | 
 | 56 | download on. | 
 | 57 | </file> | 
 | 58 | </verify> | 
 | 59 | </testcase> |