From 006ff62d8c51f664c167c6337f009f9f65dd8ea7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 17 Dec 2018 15:46:56 +0100 Subject: http: added options for allowing HTTP/0.9 responses Added CURLOPT_HTTP09_ALLOWED and --http0.9 for this purpose. For now, both the tool and library allow HTTP/0.9 by default. docs/DEPRECATE.md lays out the plan for when to reverse that default: 6 months after the 7.64.0 release. The options are added already now so that applications/scripts can start using them already now. Fixes #2873 Closes #3383 --- tests/data/test1172 | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 tests/data/test1172 (limited to 'tests/data/test1172') diff --git a/tests/data/test1172 b/tests/data/test1172 new file mode 100644 index 000000000..6e61720bd --- /dev/null +++ b/tests/data/test1172 @@ -0,0 +1,50 @@ + + + +HTTP +HTTP/0.9 + + + +# +# Server-side + + +-foo- swsclose + + + + + +# +# Client-side + + +http + + +HTTP/0.9 GET response denied + + +http://%HOSTIP:%HTTPPORT/1172 --no-http0.9 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1172 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + +# unsupported protocol + +1 + + + -- cgit v1.2.3