curl-curl/tests/data/test1474
Daniel Stenberg 8e93a74a73
tool_paramhlp: refuse --proto remove all protocols
curl is for transfers so disabling all protocols has to be a mistake.
Previously it would allow this to get set (even if curl_easy_setopt()
returns an error for it) and then let libcurl return error instead.

Updated 1474 accordingly.

Closes #19388
2025-11-06 23:42:47 +01:00

38 lines
455 B
Plaintext

<testcase>
<info>
<keywords>
HTTP
HTTP GET
--proto
</keywords>
</info>
#
# Server-side
<reply>
</reply>
#
# Client-side
<client>
<features>
http
</features>
<name>
--proto -all disables all protocols
</name>
<command>
--proto -all http://%HOSTIP:%NOLISTENPORT/%TESTNUMBER
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
# 2 failed init, the --proto argument is not accepted
<errorcode>
2
</errorcode>
</verify>
</testcase>