test EPSV and PASV response handling when they get well-formated data back

but using illegal values
This commit is contained in:
Daniel Stenberg
2005-03-15 12:33:08 +00:00
parent 06ffb47ef2
commit 9a5c21c16f
3 changed files with 68 additions and 1 deletions

34
tests/data/test237 Normal file
View File

@@ -0,0 +1,34 @@
# Server-side
<reply>
</reply>
# Client-side
<client>
<server>
ftp
</server>
<name>
FTP getting bad host in 227-response to PASV
</name>
<command>
ftp://%HOSTIP:%FTPPORT/237 --disable-epsv
</command>
<file name="log/ftpserver.cmd">
REPLY PASV 227 Entering Passiv Mode (1218,91,256,127,127,127)
</file>
</client>
# Verify data after the test has been "shot"
<verify>
# curl: (15) Can't resolve new host 1218.91.256.127:32639
# 15 => CURLE_FTP_CANT_GET_HOST
<errorcode>
15
</errorcode>
<protocol>
USER anonymous
PASS curl_by_daniel@haxx.se
PWD
PASV
</protocol>
</verify>