mirror of
https://github.com/curl/curl.git
synced 2026-08-24 23:43:40 +03:00
curl: error out when options need features not present in libcurl
Trying to use a proxy when libcurl was built with proxy support disabled should make curl error out properly. Remove knowledge of disabled features from the tool code and instead make it properly respond to what libcurl returns. Update all tests to properly require the necessary features to be present/absent so that the test suite can still be run even with libcurl builds with disabled features. Ref: https://curl.se/mail/archive-2022-03/0013.html Closes #8565
This commit is contained in:
parent
96edc7954f
commit
95e8515ca0
23 changed files with 105 additions and 170 deletions
|
|
@ -29,6 +29,9 @@ Funny-head: yesyes
|
|||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
proxy
|
||||
</features>
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ none
|
|||
<features>
|
||||
idn
|
||||
http
|
||||
proxy
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ none
|
|||
<features>
|
||||
idn
|
||||
http
|
||||
proxy
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=
|
||||
|
|
|
|||
|
|
@ -23,6 +23,9 @@ boo
|
|||
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
proxy
|
||||
</features>
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@ foo
|
|||
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
proxy
|
||||
</features>
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@ foo
|
|||
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
proxy
|
||||
</features>
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
|
|
|
|||
|
|
@ -23,6 +23,9 @@ foo
|
|||
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
proxy
|
||||
</features>
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
|
|
|
|||
|
|
@ -29,6 +29,9 @@ Funny-head: yesyes
|
|||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
proxy
|
||||
</features>
|
||||
<server>
|
||||
http
|
||||
socks4
|
||||
|
|
|
|||
|
|
@ -29,6 +29,9 @@ Funny-head: yesyes
|
|||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
proxy
|
||||
</features>
|
||||
<server>
|
||||
http
|
||||
socks5
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@ response 91
|
|||
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
proxy
|
||||
</features>
|
||||
<server>
|
||||
socks4
|
||||
</server>
|
||||
|
|
|
|||
|
|
@ -31,6 +31,9 @@ dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
|
|||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
proxy
|
||||
</features>
|
||||
<server>
|
||||
ftp
|
||||
socks4
|
||||
|
|
|
|||
|
|
@ -31,6 +31,9 @@ dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
|
|||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
proxy
|
||||
</features>
|
||||
<server>
|
||||
ftp
|
||||
socks5
|
||||
|
|
|
|||
|
|
@ -29,6 +29,9 @@ Funny-head: yesyes
|
|||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
proxy
|
||||
</features>
|
||||
<server>
|
||||
http
|
||||
socks4
|
||||
|
|
|
|||
|
|
@ -29,6 +29,9 @@ Funny-head: yesyes
|
|||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
proxy
|
||||
</features>
|
||||
<server>
|
||||
http
|
||||
socks5
|
||||
|
|
|
|||
|
|
@ -29,6 +29,9 @@ Funny-head: yesyes
|
|||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
proxy
|
||||
</features>
|
||||
<server>
|
||||
http
|
||||
socks5
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@ silly content
|
|||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
proxy
|
||||
</features>
|
||||
<server>
|
||||
ftp
|
||||
socks5
|
||||
|
|
|
|||
|
|
@ -19,6 +19,9 @@ silly content
|
|||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
proxy
|
||||
</features>
|
||||
<server>
|
||||
ftp
|
||||
socks5
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@ silly content
|
|||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
proxy
|
||||
</features>
|
||||
<server>
|
||||
ftp
|
||||
socks5
|
||||
|
|
|
|||
|
|
@ -35,6 +35,9 @@ silly content
|
|||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
proxy
|
||||
</features>
|
||||
<server>
|
||||
ftp
|
||||
http-proxy
|
||||
|
|
|
|||
|
|
@ -36,6 +36,9 @@ silly content
|
|||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
proxy
|
||||
</features>
|
||||
<server>
|
||||
ftp
|
||||
http-proxy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue