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/test1439 | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 tests/data/test1439 (limited to 'tests/data/test1439') diff --git a/tests/data/test1439 b/tests/data/test1439 new file mode 100644 index 000000000..cb906adbc --- /dev/null +++ b/tests/data/test1439 @@ -0,0 +1,58 @@ + + + +HTTP +--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/1439 --write-out '%{http_version}' + + + +# 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 +1.1 + + +GET /1439 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + +^User-Agent:.* + + + -- cgit v1.2.3