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 Worker</keywords> 7*6236dae4SAndroid Build Coastguard Worker</info> 8*6236dae4SAndroid Build Coastguard Worker 9*6236dae4SAndroid Build Coastguard Worker# Server-side 10*6236dae4SAndroid Build Coastguard Worker# This particular response is an exact excerpt from an actual Apache 11*6236dae4SAndroid Build Coastguard Worker# server when asked for a 0-10,12-15 range (except gt/lt changed to {} 12*6236dae4SAndroid Build Coastguard Worker# to avoid XML escaping problems). 13*6236dae4SAndroid Build Coastguard Worker<reply> 14*6236dae4SAndroid Build Coastguard Worker<data> 15*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 206 Partial Content swsclose 16*6236dae4SAndroid Build Coastguard WorkerDate: Sat, 24 Apr 2004 09:24:49 GMT 17*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.29 (Unix) mod_throttle/3.1.2 PHP/4.3.4 mod_fastcgi/2.4.0 18*6236dae4SAndroid Build Coastguard WorkerLast-Modified: Tue, 23 Mar 2004 08:23:14 GMT 19*6236dae4SAndroid Build Coastguard WorkerETag: "53814a-ec5-405ff3f2" 20*6236dae4SAndroid Build Coastguard WorkerAccept-Ranges: bytes 21*6236dae4SAndroid Build Coastguard WorkerContent-Length: 187 22*6236dae4SAndroid Build Coastguard WorkerContent-Type: multipart/byteranges; boundary=408a326132c 23*6236dae4SAndroid Build Coastguard Worker 24*6236dae4SAndroid Build Coastguard Worker--408a326132c 25*6236dae4SAndroid Build Coastguard WorkerContent-type: text/html 26*6236dae4SAndroid Build Coastguard WorkerContent-range: bytes 0-10/3781 27*6236dae4SAndroid Build Coastguard Worker 28*6236dae4SAndroid Build Coastguard Worker{html} 29*6236dae4SAndroid Build Coastguard Worker{hea 30*6236dae4SAndroid Build Coastguard Worker 31*6236dae4SAndroid Build Coastguard Worker--408a326132c 32*6236dae4SAndroid Build Coastguard WorkerContent-type: text/html 33*6236dae4SAndroid Build Coastguard WorkerContent-range: bytes 12-15/3781 34*6236dae4SAndroid Build Coastguard Worker 35*6236dae4SAndroid Build Coastguard Worker} 36*6236dae4SAndroid Build Coastguard Worker{t 37*6236dae4SAndroid Build Coastguard Worker 38*6236dae4SAndroid Build Coastguard Worker--408a326132c-- 39*6236dae4SAndroid Build Coastguard Worker</data> 40*6236dae4SAndroid Build Coastguard Worker</reply> 41*6236dae4SAndroid Build Coastguard Worker 42*6236dae4SAndroid Build Coastguard Worker# Client-side 43*6236dae4SAndroid Build Coastguard Worker<client> 44*6236dae4SAndroid Build Coastguard Worker<server> 45*6236dae4SAndroid Build Coastguard Workerhttp 46*6236dae4SAndroid Build Coastguard Worker</server> 47*6236dae4SAndroid Build Coastguard Worker<name> 48*6236dae4SAndroid Build Coastguard WorkerHTTP range with multiple ranges 49*6236dae4SAndroid Build Coastguard Worker</name> 50*6236dae4SAndroid Build Coastguard Worker<command> 51*6236dae4SAndroid Build Coastguard Workerhttp://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -r 0-10,12-15 52*6236dae4SAndroid Build Coastguard Worker</command> 53*6236dae4SAndroid Build Coastguard Worker</client> 54*6236dae4SAndroid Build Coastguard Worker 55*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 56*6236dae4SAndroid Build Coastguard Worker<verify> 57*6236dae4SAndroid Build Coastguard Worker<protocol> 58*6236dae4SAndroid Build Coastguard WorkerGET /want/%TESTNUMBER HTTP/1.1 59*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 60*6236dae4SAndroid Build Coastguard WorkerRange: bytes=0-10,12-15 61*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 62*6236dae4SAndroid Build Coastguard WorkerAccept: */* 63*6236dae4SAndroid Build Coastguard Worker 64*6236dae4SAndroid Build Coastguard Worker</protocol> 65*6236dae4SAndroid Build Coastguard Worker</verify> 66*6236dae4SAndroid Build Coastguard Worker</testcase> 67