From ac17d794730d67b47fc26febb4bc612497fd8259 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 9 Jan 2018 17:57:35 +1300 Subject: test393: verify --max-filesize with excessive Content-Length --- tests/data/test393 | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 tests/data/test393 (limited to 'tests/data/test393') diff --git a/tests/data/test393 b/tests/data/test393 new file mode 100644 index 000000000..f03e9a246 --- /dev/null +++ b/tests/data/test393 @@ -0,0 +1,60 @@ + + + +HTTP +HTTP GET +--max-filesize +FAILURE + + + +# +# Server-side + + +HTTP/1.1 200 OK swsclose +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT +ETag: "21025-dc7-39462498" +Accept-Ranges: bytes +Content-Length: 36893488147419103232 +Connection: close +Content-Type: text/html +Funny-head: yesyes + +-foo- + + + +# +# Client-side + + +http + + +HTTP max-filesize and out-of-range Content-Length + + +http://%HOSTIP:%HTTPPORT/393 --max-filesize 2000000 + + + +# +# Verify data after the test has been "shot" + + +63 + + +^User-Agent:.* + + +GET /393 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + -- cgit v1.2.3