From 605bbfc4c0fa838f50bf9d18e69e417168f524c0 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 1 Jan 2010 14:44:44 +0000 Subject: - Ingmar Runge enhanced libcurl's FTP engine to support the PRET command. This command is a special "hack" used by the drftpd server, but even though it is a custom extension I've deemed it fine to add to libcurl since this server seems to survive and people keep using it and want libcurl to support it. The new libcurl option is named CURLOPT_FTP_USE_PRET, and it is also usable from the curl tool with --ftp-pret. Using this option on a server that doesn't support this command will make libcurl fail. --- tests/data/test1108 | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 tests/data/test1108 (limited to 'tests/data/test1108') diff --git a/tests/data/test1108 b/tests/data/test1108 new file mode 100644 index 000000000..7b779e11f --- /dev/null +++ b/tests/data/test1108 @@ -0,0 +1,45 @@ + + + +FTP +PASV +RETR +PRET + + +# Server-side + + + +REPLY PRET 550 unkown command + + + +# Client-side + + +ftp + + +FTP RETR PASV with PRET not supported + + +ftp://%HOSTIP:%FTPPORT/1108 --ftp-pret + + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +PRET RETR 1108 + +# we expect that the server doesn't understand PRET + +84 + + + -- cgit v1.2.3