1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

test1120: verify FTP response 421

curl mustn't try to use the control connection after the 421 is received
This commit is contained in:
Daniel Stenberg 2010-11-10 15:36:42 +01:00
parent d596a523b9
commit 0b20de0194
2 changed files with 45 additions and 1 deletions

View File

@ -68,7 +68,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
test1108 test1109 test1110 test1111 test1112 test129 test567 test568 \ test1108 test1109 test1110 test1111 test1112 test129 test567 test568 \
test569 test570 test571 test572 test804 test805 test806 test807 test573 \ test569 test570 test571 test572 test804 test805 test806 test807 test573 \
test313 test1115 test578 test579 test1116 test1200 test1201 test1202 \ test313 test1115 test578 test579 test1116 test1200 test1201 test1202 \
test1203 test1117 test1118 test1119 test1203 test1117 test1118 test1119 test1120
filecheck: filecheck:
@mkdir test-place; \ @mkdir test-place; \

44
tests/data/test1120 Normal file
View File

@ -0,0 +1,44 @@
<testcase>
<info>
<keywords>
FTP
PORT
RETR
421
</keywords>
</info>
# Server-side
<reply>
<servercmd>
REPLY CWD 421 Timeout!
</server>
</reply>
# Client-side
<client>
<server>
ftp
</server>
<name>
FTP with 421 timeout response
</name>
<command>
ftp://%HOSTIP:%FTPPORT/a/path/1120
</command>
</client>
# Verify data after the test has been "shot"
<verify>
# Strip all valid kinds of PORT and EPRT that curl can send
<protocol>
USER anonymous
PASS ftp@example.com
PWD
CWD a
</protocol>
# CURLE_OPERATION_TIMEDOUT is 28
<errorcode>
28
</errorcode>
</verify>
</testcase>