1*6236dae4SAndroid Build Coastguard Worker<testcase> 2*6236dae4SAndroid Build Coastguard Worker<info> 3*6236dae4SAndroid Build Coastguard Worker<keywords> 4*6236dae4SAndroid Build Coastguard WorkerHTTP 5*6236dae4SAndroid Build Coastguard WorkerHTTP GET 6*6236dae4SAndroid Build Coastguard WorkerContent-Range 7*6236dae4SAndroid Build Coastguard Worker</keywords> 8*6236dae4SAndroid Build Coastguard Worker</info> 9*6236dae4SAndroid Build Coastguard Worker 10*6236dae4SAndroid Build Coastguard Worker# Server-side 11*6236dae4SAndroid Build Coastguard Worker<reply> 12*6236dae4SAndroid Build Coastguard Worker<data> 13*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 206 Partial Content 14*6236dae4SAndroid Build Coastguard WorkerDate: Thu, 31 Jul 2008 13:41:09 GMT 15*6236dae4SAndroid Build Coastguard WorkerAccept-Ranges: bytes 16*6236dae4SAndroid Build Coastguard WorkerContent-Length: 101 17*6236dae4SAndroid Build Coastguard WorkerContent-Range: bytes 100-200/201 18*6236dae4SAndroid Build Coastguard WorkerConnection: close 19*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html 20*6236dae4SAndroid Build Coastguard Worker 21*6236dae4SAndroid Build Coastguard Worker..partial data returned from the 22*6236dae4SAndroid Build Coastguard Workerserver as a result of setting an explicit byte range 23*6236dae4SAndroid Build Coastguard Workerin the request 24*6236dae4SAndroid Build Coastguard Worker</data> 25*6236dae4SAndroid Build Coastguard Worker</reply> 26*6236dae4SAndroid Build Coastguard Worker 27*6236dae4SAndroid Build Coastguard Worker# Client-side 28*6236dae4SAndroid Build Coastguard Worker<client> 29*6236dae4SAndroid Build Coastguard Worker<server> 30*6236dae4SAndroid Build Coastguard Workerhttp 31*6236dae4SAndroid Build Coastguard Worker</server> 32*6236dae4SAndroid Build Coastguard Worker<name> 33*6236dae4SAndroid Build Coastguard WorkerHTTP range relative to end of file 34*6236dae4SAndroid Build Coastguard Worker</name> 35*6236dae4SAndroid Build Coastguard Worker<command> 36*6236dae4SAndroid Build Coastguard Workerhttp://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -r -101 37*6236dae4SAndroid Build Coastguard Worker</command> 38*6236dae4SAndroid Build Coastguard Worker</client> 39*6236dae4SAndroid Build Coastguard Worker 40*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 41*6236dae4SAndroid Build Coastguard Worker<verify> 42*6236dae4SAndroid Build Coastguard Worker<protocol> 43*6236dae4SAndroid Build Coastguard WorkerGET /want/%TESTNUMBER HTTP/1.1 44*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 45*6236dae4SAndroid Build Coastguard WorkerRange: bytes=-101 46*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 47*6236dae4SAndroid Build Coastguard WorkerAccept: */* 48*6236dae4SAndroid Build Coastguard Worker 49*6236dae4SAndroid Build Coastguard Worker</protocol> 50*6236dae4SAndroid Build Coastguard Worker</verify> 51*6236dae4SAndroid Build Coastguard Worker</testcase> 52