From e38fe7abbf127c50b846a4456835dd2c1be631a5 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Fri, 25 Nov 2016 22:32:32 +0100 Subject: tests: Add some testcases for recent new features. Add missing tests for CURLINFO_SCHEME, CURLINFO_PROTOCOL, %{scheme}, and %{http_version} closes #1143 --- tests/data/test1536 | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 tests/data/test1536 (limited to 'tests/data/test1536') diff --git a/tests/data/test1536 b/tests/data/test1536 new file mode 100644 index 000000000..a6e5a66cb --- /dev/null +++ b/tests/data/test1536 @@ -0,0 +1,50 @@ + + + +HTTP +HTTP GET + + + +# +# Server-side + + +HTTP/1.0 200 OK swsclose +Last-Modified: Thu, 01 Jan 1970 00:00:30 GMT +Content-Length: 0 + + + + +# Client-side + + +http + +# tool is what to use instead of 'curl' + +lib1536 + + +Test CURLINFO_RESPONSE_CODE CURLINFO_SCHEME + + +http://%HOSTIP:%HTTPPORT/1536 + + + +# +# Verify data after the test has been "shot" + + +GET /1536 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + +0 + + + -- cgit v1.2.3