test1041 (1197B)
1 <testcase> 2 # Similar to test33 3 <info> 4 <keywords> 5 HTTP 6 HTTP PUT 7 Resume 8 Content-Range 9 </keywords> 10 </info> 11 12 # Server-side 13 <reply> 14 <data> 15 HTTP/1.1 200 OK swsclose 16 Date: Tue, 09 Nov 2010 14:49:00 GMT 17 Server: test-server/fake 18 Accept-Ranges: bytes 19 Content-Length: 0 20 Connection: close 21 Content-Type: text/html 22 23 </data> 24 </reply> 25 26 # Client-side 27 <client> 28 <server> 29 http 30 </server> 31 <name> 32 HTTP PUT with resume from end of already-uploaded file 33 </name> 34 <file name="%LOGDIR/test%TESTNUMBER.txt"> 35 012345678 36 012345678 37 012345678 38 012345678 39 012345678 40 012345678 41 012345678 42 012345678 43 012345678 44 012345678 45 </file> 46 <command> 47 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -T%LOGDIR/test%TESTNUMBER.txt -C - 48 </command> 49 </client> 50 51 # Verify data after the test has been "shot" 52 <verify> 53 # curl doesn't do a HEAD request on the remote file so it has no idea whether 54 # it can skip part of the file or not. Instead, it sends the entire file. 55 <protocol> 56 PUT /%TESTNUMBER HTTP/1.1 57 Host: %HOSTIP:%HTTPPORT 58 Content-Range: bytes 0-99/100 59 User-Agent: curl/%VERSION 60 Accept: */* 61 Content-Length: 100 62 63 012345678 64 012345678 65 012345678 66 012345678 67 012345678 68 012345678 69 012345678 70 012345678 71 012345678 72 012345678 73 </protocol> 74 </verify> 75 </testcase>