HTTP
HTTP GET
Resume
FAILURE
# Server-side
# Some servers (e.g. Apache 1.2) respond this way to an invalid byte range
HTTP/1.1 200 OK
Connection: close
Content-Length: 100
Content-Type: text/plain
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
# The file data that exists at the start of the test must be included in
# the verification.
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
HTTP/1.1 200 OK
Connection: close
Content-Length: 100
Content-Type: text/plain
# Client-side
http
HTTP GET beyond end of entirely-downloaded file, no server resume
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C 200
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
# Verify data after the test has been "shot"
33
GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Range: bytes=200-
User-Agent: curl/%VERSION
Accept: */*