aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1096
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-02-19 13:47:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-02-19 13:47:06 +0000
commit7f22da5230fc6bb481bb9ab53c44427f1e0d4b40 (patch)
tree0f8f3e2bd95e7bb24180266122c1b639d277010e /tests/data/test1096
parent5af0629ba5d09b9820fe3752279906147c310e3e (diff)
verify that a 550-response for a RETR returns 78 but also that the control
connection is kept alive afterwards
Diffstat (limited to 'tests/data/test1096')
-rw-r--r--tests/data/test109650
1 files changed, 50 insertions, 0 deletions
diff --git a/tests/data/test1096 b/tests/data/test1096
new file mode 100644
index 000000000..30748c1b4
--- /dev/null
+++ b/tests/data/test1096
@@ -0,0 +1,50 @@
+<testcase>
+<info>
+<keywords>
+FTP
+PASV
+RETR
+FAILURE
+</keywords>
+</info>
+# Server-side
+<reply>
+<servercmd>
+REPLY RETR 550 no such file!
+</servercmd>
+</reply>
+
+# Client-side
+<client>
+<server>
+ftp
+</server>
+ <name>
+Two FTP downloads, with failed RETR but re-used control connection
+ </name>
+ <command>
+ftp://%HOSTIP:%FTPPORT/dir/1096 ftp://%HOSTIP:%FTPPORT/dir/1096
+</command>
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<errorcode>
+78
+</errorcode>
+<protocol>
+USER anonymous
+PASS ftp@example.com
+PWD
+CWD dir
+EPSV
+TYPE I
+SIZE 1096
+RETR 1096
+EPSV
+SIZE 1096
+RETR 1096
+QUIT
+</protocol>
+</verify>
+</testcase>