tool_operate: for -O, use "default" as filename when the URL has none

... or pick the last directory part from the path if available.

Instead of returning error.

Add test 690 and 691 to verify. Test 76 and 2036 no longer apply.

Closes #13988
This commit is contained in:
Daniel Stenberg 2024-08-03 20:08:27 +02:00
parent cb829f994d
commit e26eefd9ce
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
8 changed files with 165 additions and 85 deletions

View file

@ -1,36 +0,0 @@
<testcase>
<info>
<keywords>
FAILURE
</keywords>
</info>
#
# Server-side
<reply>
</reply>
#
# Client-side
<client>
<server>
none
</server>
<features>
http
</features>
<name>
HTTP, -O with no file name part in the URL
</name>
<command option="no-output">
http://%HOSTIP:%NOLISTENPORT/%TESTNUMBER/ -O
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<errorcode>
23
</errorcode>
</verify>
</testcase>