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/test1438 | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 tests/data/test1438 (limited to 'tests/data/test1438') diff --git a/tests/data/test1438 b/tests/data/test1438 new file mode 100644 index 000000000..8aaedb71e --- /dev/null +++ b/tests/data/test1438 @@ -0,0 +1,58 @@ + + + +protocol +--write-out + + +# Server-side + + +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Content-Length: 9 +Connection: close +Content-Type: text/plain + +testdata + + + + +# Client-side + + +http + + + +Check if %{scheme} returns HTTP + + +http://%HOSTIP:%HTTPPORT/1438 --write-out '%{scheme}' + + + +# Verify data + + +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Content-Length: 9 +Connection: close +Content-Type: text/plain + +testdata +HTTP + + +GET /1438 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + +^User-Agent:.* + + + -- cgit v1.2.3