From e6cd738ed3716c02557fb3a47515244e949ade39 Mon Sep 17 00:00:00 2001 From: Bertrand SIMONNET Date: Wed, 1 Jul 2015 15:39:44 -0700 Subject: Import curl 7.43 This is a simple import of curl 7.43. The only change from the official release is the fact that the Android.mk was removed to avoid build error trying to parse it. BUG: 22347561 Change-Id: I52ef6798d30b25d22d1f62770d571adec8bcf4d5 --- tests/data/test1434 | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 tests/data/test1434 (limited to 'tests/data/test1434') diff --git a/tests/data/test1434 b/tests/data/test1434 new file mode 100644 index 00000000..0b33bb95 --- /dev/null +++ b/tests/data/test1434 @@ -0,0 +1,90 @@ + + + +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" + + +^User-Agent:.* + + +GET /1434 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Range: bytes=100- +Accept: */* + + + + -- cgit v1.2.3