test1475 (1119B)
1 <testcase> 2 # also verified by 1156 in libcurl API terms 3 4 <info> 5 <keywords> 6 HTTP 7 HTTP GET 8 Resume 9 </keywords> 10 </info> 11 12 # Server-side 13 <reply> 14 <data> 15 HTTP/1.1 416 Invalid range 16 Connection: close 17 Content-Length: 0 18 Content-Range: */100 19 20 </data> 21 22 # The file data that exists at the start of the test must be included in 23 # the verification. 24 <datacheck> 25 012345678 26 012345678 27 012345678 28 012345678 29 012345678 30 012345678 31 012345678 32 012345678 33 012345678 34 012345678 35 HTTP/1.1 416 Invalid range 36 Connection: close 37 Content-Length: 0 38 Content-Range: */100 39 40 </datacheck> 41 42 </reply> 43 44 # Client-side 45 <client> 46 <server> 47 http 48 </server> 49 <killserver> 50 http 51 </killserver> 52 <name> 53 -f and 416 with Content-Range: */size 54 </name> 55 <command> 56 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C - -f 57 </command> 58 <file name="%LOGDIR/curl%TESTNUMBER.out"> 59 012345678 60 012345678 61 012345678 62 012345678 63 012345678 64 012345678 65 012345678 66 012345678 67 012345678 68 012345678 69 </file> 70 </client> 71 72 # Verify data after the test has been "shot" 73 <verify> 74 <protocol> 75 GET /%TESTNUMBER HTTP/1.1 76 Host: %HOSTIP:%HTTPPORT 77 Range: bytes=100- 78 User-Agent: curl/%VERSION 79 Accept: */* 80 81 </protocol> 82 </verify> 83 </testcase>