curl-curl/tests
Daniel Stenberg f847d2ed02
tool_formparse: rewrite the headers file parser
The -F option allows users to provide a file with a set of headers for a
specific formpost section. This code used old handcrafted parsing logic
that potentially could do wrong.

Rewrite to use my_get_line() and dynbuf. Supports longer lines and
should be more solid parsing code.

Gets somewhat complicated by the (unwise) feature that allows "folding"
of header lines in the file: if a line starts with a space it should be
appended to the previous.

The previous code trimmed spurious CR characters wherever they would
occur in a line but this version does not. It does not seem like
something we want or that users would expect.

Test 646 uses this feature.
Closes #19113
2025-10-18 12:49:53 +02:00
..
certs configure: if no perl, disable unity and shell completion, related tidy ups 2025-08-04 14:55:10 +02:00
cmake lib: stop overriding system printf symbols 2025-10-06 20:57:59 +02:00
data tool_formparse: rewrite the headers file parser 2025-10-18 12:49:53 +02:00
http test_16: adjust timing expectations 2025-10-17 13:35:35 +02:00
libtest mbedtls: add support for 4.0.0 2025-10-17 11:50:48 +02:00
server REUSE: move copyright headers to .checksrc 2025-10-13 11:54:22 +02:00
tunit lib: stop overriding system printf symbols 2025-10-06 20:57:59 +02:00
unit multi: add notifications API 2025-10-07 10:55:31 +02:00
.gitignore
allversions.pm
appveyor.pm
azure.pm
CMakeLists.txt pytest: skip specific tests for no-verbose builds 2025-10-02 10:41:46 +02:00
config.in
configurehelp.pm.in
devtest.pl tidy-up: formatting 2025-08-23 01:12:27 +02:00
dictserver.py
directories.pm
ech_combos.py
ech_tests.sh tidy-up: formatting 2025-08-23 01:12:27 +02:00
ftpserver.pl runtests: assume Time::HiRes, drop Perl Win32 dependency 2025-08-14 16:34:06 +02:00
getpart.pm
globalconfig.pm perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
http2-server.pl
http3-server.pl
http-server.pl
Makefile.am runtests: replace --ci with --buidinfo, show OS/Perl version again 2025-08-21 13:11:32 +02:00
memanalyze.pl
negtelnetserver.py
nghttpx.conf
pathhelp.pm perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
processhelp.pm processhelp.pm: use Win32::Process* perl modules if available 2025-08-18 23:46:56 +02:00
requirements.txt GHA: bump pip cryptography, relax impacket version requirement 2025-09-25 14:22:40 +02:00
rtspserver.pl
runner.pm perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
runtests.pl perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
secureserver.pl
serverhelp.pm runtests: assume Time::HiRes, drop Perl Win32 dependency 2025-08-14 16:34:06 +02:00
servers.pm perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
smbserver.py
sshhelp.pm
sshserver.pl
test745.pl perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
test971.pl
test1119.pl docs: add CURLOPT type change history, drop casts where present 2025-08-02 00:05:33 +02:00
test1132.pl
test1135.pl
test1139.pl
test1140.pl
test1165.pl
test1167.pl
test1173.pl
test1175.pl
test1177.pl
test1222.pl
test1275.pl
test1276.pl
test1477.pl
test1486.pl writeout: add %time{} 2025-08-04 23:45:48 +02:00
test1488.pl
test1544.pl
test1707.pl
testcurl.pl perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
testutil.pm perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
tftpserver.pl
util.py
valgrind.pm
valgrind.supp