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 WorkerResume 7*6236dae4SAndroid Build Coastguard WorkerFAILURE 8*6236dae4SAndroid Build Coastguard Worker</keywords> 9*6236dae4SAndroid Build Coastguard Worker</info> 10*6236dae4SAndroid Build Coastguard Worker 11*6236dae4SAndroid Build Coastguard Worker# Server-side 12*6236dae4SAndroid Build Coastguard Worker<reply> 13*6236dae4SAndroid Build Coastguard Worker# Some servers (e.g. Apache 1.2) respond this way to an invalid byte range 14*6236dae4SAndroid Build Coastguard Worker<data> 15*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK 16*6236dae4SAndroid Build Coastguard WorkerConnection: close 17*6236dae4SAndroid Build Coastguard WorkerContent-Length: 100 18*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/plain 19*6236dae4SAndroid Build Coastguard Worker 20*6236dae4SAndroid Build Coastguard Worker012345678 21*6236dae4SAndroid Build Coastguard Worker012345678 22*6236dae4SAndroid Build Coastguard Worker012345678 23*6236dae4SAndroid Build Coastguard Worker012345678 24*6236dae4SAndroid Build Coastguard Worker012345678 25*6236dae4SAndroid Build Coastguard Worker012345678 26*6236dae4SAndroid Build Coastguard Worker012345678 27*6236dae4SAndroid Build Coastguard Worker012345678 28*6236dae4SAndroid Build Coastguard Worker012345678 29*6236dae4SAndroid Build Coastguard Worker012345678 30*6236dae4SAndroid Build Coastguard Worker</data> 31*6236dae4SAndroid Build Coastguard Worker 32*6236dae4SAndroid Build Coastguard Worker# The file data that exists at the start of the test must be included in 33*6236dae4SAndroid Build Coastguard Worker# the verification. 34*6236dae4SAndroid Build Coastguard Worker<datacheck> 35*6236dae4SAndroid Build Coastguard Worker012345678 36*6236dae4SAndroid Build Coastguard Worker012345678 37*6236dae4SAndroid Build Coastguard Worker012345678 38*6236dae4SAndroid Build Coastguard Worker012345678 39*6236dae4SAndroid Build Coastguard Worker012345678 40*6236dae4SAndroid Build Coastguard Worker012345678 41*6236dae4SAndroid Build Coastguard Worker012345678 42*6236dae4SAndroid Build Coastguard Worker012345678 43*6236dae4SAndroid Build Coastguard Worker012345678 44*6236dae4SAndroid Build Coastguard Worker012345678 45*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK 46*6236dae4SAndroid Build Coastguard WorkerConnection: close 47*6236dae4SAndroid Build Coastguard WorkerContent-Length: 100 48*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/plain 49*6236dae4SAndroid Build Coastguard Worker 50*6236dae4SAndroid Build Coastguard Worker</datacheck> 51*6236dae4SAndroid Build Coastguard Worker</reply> 52*6236dae4SAndroid Build Coastguard Worker 53*6236dae4SAndroid Build Coastguard Worker# Client-side 54*6236dae4SAndroid Build Coastguard Worker<client> 55*6236dae4SAndroid Build Coastguard Worker<server> 56*6236dae4SAndroid Build Coastguard Workerhttp 57*6236dae4SAndroid Build Coastguard Worker</server> 58*6236dae4SAndroid Build Coastguard Worker<name> 59*6236dae4SAndroid Build Coastguard WorkerHTTP GET beyond end of entirely-downloaded file, no server resume 60*6236dae4SAndroid Build Coastguard Worker</name> 61*6236dae4SAndroid Build Coastguard Worker<command> 62*6236dae4SAndroid Build Coastguard Workerhttp://%HOSTIP:%HTTPPORT/%TESTNUMBER -C 200 63*6236dae4SAndroid Build Coastguard Worker</command> 64*6236dae4SAndroid Build Coastguard Worker<file name="%LOGDIR/curl%TESTNUMBER.out"> 65*6236dae4SAndroid Build Coastguard Worker012345678 66*6236dae4SAndroid Build Coastguard Worker012345678 67*6236dae4SAndroid Build Coastguard Worker012345678 68*6236dae4SAndroid Build Coastguard Worker012345678 69*6236dae4SAndroid Build Coastguard Worker012345678 70*6236dae4SAndroid Build Coastguard Worker012345678 71*6236dae4SAndroid Build Coastguard Worker012345678 72*6236dae4SAndroid Build Coastguard Worker012345678 73*6236dae4SAndroid Build Coastguard Worker012345678 74*6236dae4SAndroid Build Coastguard Worker012345678 75*6236dae4SAndroid Build Coastguard Worker</file> 76*6236dae4SAndroid Build Coastguard Worker</client> 77*6236dae4SAndroid Build Coastguard Worker 78*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 79*6236dae4SAndroid Build Coastguard Worker<verify> 80*6236dae4SAndroid Build Coastguard Worker<errorcode> 81*6236dae4SAndroid Build Coastguard Worker33 82*6236dae4SAndroid Build Coastguard Worker</errorcode> 83*6236dae4SAndroid Build Coastguard Worker<protocol> 84*6236dae4SAndroid Build Coastguard WorkerGET /%TESTNUMBER HTTP/1.1 85*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 86*6236dae4SAndroid Build Coastguard WorkerRange: bytes=200- 87*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 88*6236dae4SAndroid Build Coastguard WorkerAccept: */* 89*6236dae4SAndroid Build Coastguard Worker 90*6236dae4SAndroid Build Coastguard Worker</protocol> 91*6236dae4SAndroid Build Coastguard Worker</verify> 92*6236dae4SAndroid Build Coastguard Worker</testcase> 93