HTTP
HTTP GET
Resume
# 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 resume at exactly the existing file size is fine
http://%HOSTIP:%HTTPPORT/1434 -C 100
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
# Verify data after the test has been "shot"
GET /1434 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Range: bytes=100-
User-Agent: curl/%VERSION
Accept: */*