diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-11-21 13:22:32 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-11-21 13:22:32 +0000 |
commit | bdb411c6cabcdb0d013054a256b2a89fcc23a875 (patch) | |
tree | 9117032306712470cfceab5880d7a93692922a27 | |
parent | 56ac132401bf514374388fc1e2b193fc58429e2f (diff) |
STOR works!
-rw-r--r-- | tests/ftpserver.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index 843679665..0888d1982 100644 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -184,18 +184,24 @@ sub STOR_command { logmsg "STOR test number $testno\n"; - my $filename = "log/ftp.upload"; + my $filename = "log/ftpout.$testno"; + + print "200 Gimme gimme gimme!\r\n"; open(FILE, ">$filename") || return 0; # failed to open output my $line; + my $ulsize=0; while (defined($line = <SOCK>)) { + $ulsize += length($line); print FILE $line; } close(FILE); close(SOCK); + logmsg "received $ulsize bytes upload\n"; + print "226 File transfer complete\r\n"; return 0; } |