diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-01-09 17:57:35 +1300 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-01-13 22:49:31 +0100 |
commit | ac17d794730d67b47fc26febb4bc612497fd8259 (patch) | |
tree | 8057dad47ed1582bbbb979566c3397760e2f0fb5 /tests/data/test393 | |
parent | f68e67271586125c06f33297a245a920d325584e (diff) |
test393: verify --max-filesize with excessive Content-Length
Diffstat (limited to 'tests/data/test393')
-rw-r--r-- | tests/data/test393 | 60 |
1 files changed, 60 insertions, 0 deletions
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 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP GET +--max-filesize +FAILURE +</keywords> +</info> + +# +# Server-side +<reply> +<data nocheck="yes"> +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- +</data> +</reply> + +# +# Client-side +<client> +<server> +http +</server> + <name> +HTTP max-filesize and out-of-range Content-Length + </name> + <command> +http://%HOSTIP:%HTTPPORT/393 --max-filesize 2000000 +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<errorcode> +63 +</errorcode> +<strip> +^User-Agent:.* +</strip> +<protocol> +GET /393 HTTP/1.1
+Host: %HOSTIP:%HTTPPORT
+Accept: */*
+
+</protocol> +</verify> +</testcase> |