From b0b2824b58df4dead3fdc7fcb48c3c95328ae2fc Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Mon, 24 Aug 2009 12:57:25 +0000 Subject: - Introduced a SYST-based test to properly set-up name format when dealing with the OS/400 FTP server. - Fixed an ftp_readresp() bug preventing detection of failing control socket and causing FTP client to loop forever. --- tests/data/test1102 | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 tests/data/test1102 (limited to 'tests/data/test1102') diff --git a/tests/data/test1102 b/tests/data/test1102 new file mode 100644 index 000000000..addc7b572 --- /dev/null +++ b/tests/data/test1102 @@ -0,0 +1,51 @@ + + + +FTP +SYST +SITE +OS400 + + +# Server-side + + +blabla + + +REPLY PWD 257 "QGPL" is the current library +REPLY SYST 215 OS/400 runs this server +REPLY SITE 250 Name format set to 1 + + + +# Client-side + + +ftp + + +FTP OS/400 server name format check + + +ftp://%HOSTIP:%FTPPORT/1102 + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +SYST +SITE NAMEFMT 1 +PWD +EPSV +TYPE I +SIZE 1102 +RETR 1102 +QUIT + + + -- cgit v1.2.3