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/test1107 | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 tests/data/test1107 (limited to 'tests/data/test1107') diff --git a/tests/data/test1107 b/tests/data/test1107 new file mode 100644 index 000000000..6adc6360c --- /dev/null +++ b/tests/data/test1107 @@ -0,0 +1,53 @@ + + + +FTP +PASV +RETR +PRET + + +# Server-side + + +data + to + see +that FTP +works + so does it? + + +REPLY PRET 200 fine + + + +# Client-side + + +ftp + + +FTP RETR PASV with PRET + + +ftp://%HOSTIP:%FTPPORT/1107 --ftp-pret + + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +PRET RETR 1107 +EPSV +TYPE I +SIZE 1107 +RETR 1107 +QUIT + + + -- cgit v1.2.3