curl/tests/data/test1599
Daniel Stenberg 149d436457
test1599: verify a bad FTP password with no user
Verifies the fix from #17659

Closes #17687
2025-06-20 23:14:14 +02:00

45 lines
639 B
Text

<testcase>
<info>
<keywords>
FTP
netrc
</keywords>
</info>
# Test based on GitHub issue 17659
#
# Server-side
<reply>
<data>
-foo-
</data>
</reply>
#
# Client-side
<client>
<server>
ftp
</server>
<name>
FTP with netrc using no user but control code in password
</name>
<command>
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER log/netrc%TESTNUMBER
</command>
<tool>
lib%TESTNUMBER
</tool>
<file name="log/netrc%TESTNUMBER" nonewline="yes">
default passwor?dlogin anonymou\ ' password login anonymous passwor?d.'macdef
</file>
</client>
#
# Verify data after the test has been "shot"
<verify>
<errorcode>
0
</errorcode>
</verify>
</testcase>