setopt: add CURLOPT_PROTOCOLS_STR and CURLOPT_REDIR_PROTOCOLS_STR

... as replacements for deprecated CURLOPT_PROTOCOLS and
CURLOPT_REDIR_PROTOCOLS as these new ones do not risk running into the
32 bit limit the old ones are facing.

CURLINFO_PROTCOOL is now deprecated.

The curl tool is updated to use the new options.

Added test 1597 to verify the libcurl protocol parser.

Closes #8992
This commit is contained in:
Daniel Stenberg 2022-06-13 09:30:45 +02:00
parent 193215db3c
commit e6f8445ede
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
24 changed files with 487 additions and 45 deletions

32
tests/data/test1597 Normal file
View file

@ -0,0 +1,32 @@
<testcase>
<info>
<keywords>
CURLOPT_PROTOCOLS_STR
</keywords>
</info>
# Server-side
<reply>
</reply>
# Client-side
<client>
<server>
none
</server>
<name>
CURLOPT_PROTOCOLS_STR
</name>
<tool>
lib%TESTNUMBER
</tool>
<command>
-
</command>
</client>
<verify>
<stdout>
Tested 15 strings
</stdout>
</verify>
</testcase>