summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-04-01 07:10:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-04-01 07:10:08 +0000
commit47970b9e6ff591cb9987d33f98f0f8c94d7a0861 (patch)
tree91261404bf3ed126395681896909197369bb04fc
parentf65f120d5053d52b2db70549835d50ccb9ffbb96 (diff)
downloadcurl-47970b9e6ff591cb9987d33f98f0f8c94d7a0861.tar.gz
Added support for the RNFR/RNTO commands
-rw-r--r--tests/ftpserver.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl
index 76c68012d..592166d64 100644
--- a/tests/ftpserver.pl
+++ b/tests/ftpserver.pl
@@ -81,6 +81,8 @@ my %commandok = (
'SIZE' => 'loggedin|twosock',
'PWD' => 'loggedin|twosock',
'QUIT' => 'loggedin|twosock',
+ 'RNFR' => 'loggedin|twosock',
+ 'RNTO' => 'loggedin|twosock',
'DELE' => 'loggedin|twosock'
);
@@ -104,7 +106,9 @@ my %displaytext = ('USER' => '331 We are happy you popped in!',
'QUIT' => '221 bye bye baby', # just reply something
'PWD' => '257 "/nowhere/anywhere" is current directory',
'REST' => '350 Yeah yeah we set it there for you',
- 'DELE' => '200 OK OK OK whatever you say'
+ 'DELE' => '200 OK OK OK whatever you say',
+ 'RNFR' => '350 Received your order. Please provide more',
+ 'RNTO' => '250 Ok, thanks. File renaming completed.',
);
# callback functions for certain commands