mirror of
https://github.com/curl/curl.git
synced 2024-12-21 06:50:10 +08:00
95e8515ca0
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
48 lines
598 B
Plaintext
48 lines
598 B
Plaintext
<testcase>
|
|
#based off 19
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
SOCKS4
|
|
connect to non-listen
|
|
FAILURE
|
|
</keywords>
|
|
</info>
|
|
# Server-side
|
|
<reply>
|
|
<data>
|
|
</data>
|
|
# 91 is socks4 failure
|
|
<servercmd>
|
|
response 91
|
|
</servercmd>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<features>
|
|
proxy
|
|
</features>
|
|
<server>
|
|
socks4
|
|
</server>
|
|
<features>
|
|
http
|
|
proxy
|
|
</features>
|
|
<name>
|
|
Attempt connect to non-listening HTTP server via SOCKS4 proxy
|
|
</name>
|
|
<command>
|
|
--socks4 %HOSTIP:%SOCKSPORT http://%HOSTIP:%NOLISTENPORT
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<errorcode>
|
|
97
|
|
</errorcode>
|
|
</verify>
|
|
</testcase>
|