From a9a7b606c2341bb0fced33f5f00f45900beb9c8f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 15 Mar 2018 00:27:20 +0100 Subject: transfer: make HTTP without headers count correct body size This is what "HTTP/0.9" basically looks like. Reported on IRC Closes #2382 --- tests/data/test1164 | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 tests/data/test1164 (limited to 'tests/data/test1164') diff --git a/tests/data/test1164 b/tests/data/test1164 new file mode 100644 index 000000000..061e395cc --- /dev/null +++ b/tests/data/test1164 @@ -0,0 +1,52 @@ + + + +HTTP +HTTP GET + + + +# +# Server-side + +# perl -e 'print "swsclose" . "\0" x 200;' | base64 +# 'swsclose' is there to force server to close after send + +c3dzY2xvc2UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA== + + + +# +# Client-side + + +http + + +HTTP/0.9 GET and all zeroes + + +http://%HOSTIP:%HTTPPORT/1164 -w '%{size_download}\n' + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1164 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + +208 + + + -- cgit v1.2.3