From 082e8a3b03d2c47d237994675bface127ab23c29 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 11 Nov 2011 19:46:44 +0100 Subject: Active mode FTP test cases with server not establishing data connection 591 -> FTP multi PORT and 425 on upload 592 -> FTP multi PORT and 421 on upload 593 -> FTP multi PORT upload, no data conn and no transient neg. reply 594 -> FTP multi PORT upload, no data conn and no positive prelim. reply 1206 -> FTP PORT and 425 on download 1207 -> FTP PORT and 421 on download 1208 -> FTP PORT download, no data conn and no transient negative reply 1209 -> FTP PORT download, no data conn and no positive preliminary reply --- tests/data/test591 | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 tests/data/test591 (limited to 'tests/data/test591') diff --git a/tests/data/test591 b/tests/data/test591 new file mode 100644 index 000000000..0d4bac7dd --- /dev/null +++ b/tests/data/test591 @@ -0,0 +1,72 @@ +# +# For this test the server rejects the EPRT command, +# code in lib591 makes use of curl_multi_timeout() +# and server does not establish data connection. +# + + + +FTP +PORT +STOR +multi +EPRT refused +NODATACONN425 + + + +# Server-side + + + + +NODATACONN425 +REPLY EPRT 500 we don't like EPRT now + + + +# Client-side + + +ftp + + +lib591 + + +FTP multi PORT and 425 on upload + + +ftp://%HOSTIP:%FTPPORT/path/591 %FTPTIME2 log/upload591 + + +Moooooooooooo for 591 + upload this + + + +# Verify data after the test has been "shot" + +# Strip off parts of the PORT and EPRT commands that might differ + +s/^PORT (.*)/PORT/ +s/^EPRT \|1\|(.*)/EPRT \|1\|/ + + +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPRT |1| +PORT +TYPE I +STOR 591 +QUIT + + +28 + + + + + -- cgit v1.2.3