]> granicus.if.org Git - curl/commit
http: added options for allowing HTTP/0.9 responses
authorDaniel Stenberg <daniel@haxx.se>
Mon, 17 Dec 2018 14:46:56 +0000 (15:46 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 21 Dec 2018 09:49:30 +0000 (10:49 +0100)
commit006ff62d8c51f664c167c6337f009f9f65dd8ea7
treed3c28ede3f9a04053c3bcd5d2b2eb7cb5a191735
parentdb9776ea00226d1571e269464237b0d50191a0a3
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
36 files changed:
docs/DEPRECATE.md
docs/cmdline-opts/Makefile.inc
docs/cmdline-opts/http0.9.d [new file with mode: 0644]
docs/libcurl/curl_easy_setopt.3
docs/libcurl/opts/CURLOPT_HTTP09_ALLOWED.3 [new file with mode: 0644]
docs/libcurl/opts/CURLOPT_HTTP_VERSION.3
docs/libcurl/opts/Makefile.inc
docs/libcurl/symbols-in-versions
include/curl/curl.h
lib/http.c
lib/setopt.c
lib/url.c
lib/urldata.h
src/tool_cfgable.c
src/tool_cfgable.h
src/tool_getparam.c
src/tool_help.c
src/tool_operate.c
tests/data/Makefile.inc
tests/data/test1144
tests/data/test1164
tests/data/test1172 [new file with mode: 0644]
tests/data/test1266
tests/data/test1267
tests/data/test1400
tests/data/test1401
tests/data/test1402
tests/data/test1403
tests/data/test1404
tests/data/test1405
tests/data/test1406
tests/data/test1407
tests/data/test1420
tests/data/test1429
tests/data/test306
tests/data/test66