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 from end of entirely-downloaded file, no server resume
http://%HOSTIP:%HTTPPORT/1042 -C -
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
# Verify data after the test has been "shot"
33
^User-Agent:.*
GET /1042 HTTP/1.1
Range: bytes=100-
Host: %HOSTIP:%HTTPPORT
Accept: */*