]> git.ipfire.org Git - thirdparty/curl.git/commit
configure, cmake, lib: more form api deprecation
authorPatrick Monnerat <patrick@monnerat.net>
Tue, 15 Nov 2022 16:50:22 +0000 (17:50 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 31 Jul 2023 06:31:38 +0000 (08:31 +0200)
commit038c46f61fdbc1b8a3b66dd5546fbd3c30b0b2db
treea4fd1e505ce0fbba3019dbb17aac9d87765b812e
parent50e563253df1513eacdcfef03dc1ac6cd5ef073a
configure, cmake, lib: more form api deprecation

Introduce a --enable-form-api configure option to control its inclusion
in builds. The condition name defined for it is CURL_DISABLE_FORM_API.

Form api code is dependent of MIME: configure and CMake handle this
dependency automatically: CMake by making it a dependent option
explicitly, configure by inheriting the MIME value by default and
rejecting explicit incompatible values.

"form-api" is now a new hidden test feature.

Update libcurl modules to respect this option and adjust tests
accordingly.

Closes #9621
18 files changed:
CMakeLists.txt
configure.ac
docs/CURL-DISABLE.md
lib/curl_config.h.cmake
lib/formdata.c
lib/formdata.h
lib/http.c
lib/setopt.c
tests/data/test1308
tests/data/test516
tests/data/test554
tests/data/test587
tests/data/test650
tests/data/test651
tests/data/test672
tests/data/test673
tests/runtests.pl
tests/server/disabled.c