1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-04 16:45:06 -05:00
curl/tests/data/test1219
Daniel Stenberg c5ba0c2f54 FTP: handle a 230 welcome response
...instead of the 220 we otherwise expect.

Made the ftpserver.pl support sending a custom "welcome" and then
created test 1219 to verify this fix with such a 230 welcome.

Bug: http://curl.haxx.se/mail/lib-2013-02/0102.html
Reported by: Anders Havn
2013-04-12 23:59:37 +02:00

50 lines
550 B
Plaintext

<testcase>
<info>
<keywords>
FTP
PASV
RETR
</keywords>
</info>
# Server-side
<reply>
<data>
data
to
see
that FTP
works
so does it?
</data>
<servercmd>
REPLY welcome 230 welcome without password
</servercmd>
</reply>
# Client-side
<client>
<server>
ftp
</server>
<name>
FTP with no user+password required (230 response)
</name>
<command>
ftp://%HOSTIP:%FTPPORT/1219
</command>
</client>
# Verify data after the test has been "shot"
<verify>
<protocol>
PWD
EPSV
TYPE I
SIZE 1219
RETR 1219
QUIT
</protocol>
</verify>
</testcase>