From 4fbd57693054eb14499cde2ace2dc7890800598b Mon Sep 17 00:00:00 2001 From: Karlson2k Date: Thu, 17 Mar 2016 20:04:20 +0300 Subject: tests: added test1517 ... for checking ability to receive full HTTP response when POST request is used with slow read callback function. This test checks for bug #657 and verifies the work-around from 72d5e144fbc6. Closes #720 --- tests/data/test1517 | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 tests/data/test1517 (limited to 'tests/data/test1517') diff --git a/tests/data/test1517 b/tests/data/test1517 new file mode 100644 index 000000000..d0a4aeca3 --- /dev/null +++ b/tests/data/test1517 @@ -0,0 +1,69 @@ + + + +HTTP +POST +POST callback +slow callback +early response + + +# +# This reproduces issue #657, fixed with PR #668 - on Windows +# +# Server-side + +# Force server reply right after request headers, not waiting for request body + +skip: 45 + + +HTTP/1.1 500 Internal Server Error +Date: Thu, 17 Mar 2016 14:41:00 GMT +Server: test-server/fake +Content-Type: text/plain; charset=US-ASCII +X-Special: swsclose +Content-Length: 55 +Connection: close + +This is a virtual description of server virtual error. + + + +# Client-side + + +http + +# tool is what to use instead of 'curl' + +lib1517 + + + +HTTP POST, server responds before completed send + + +http://%HOSTIP:%HTTPPORT/1517 + + + +# +# Verify data after the test has been "shot" + + +s/^(this is what we post to the silly web server)(\r)?\n// + + +POST /1517 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* +Content-Length: 45 +Content-Type: application/x-www-form-urlencoded + + + +0 + + + -- cgit v1.2.3