aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test531
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-09-21 20:52:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-09-21 20:52:20 +0000
commite7d90e08b94fd6acecd1f1437d41b1880dae5efa (patch)
tree967d73d9985b08a23020f306c94a88e84cd17d7b /tests/data/test531
parentc2404f77e9eb34b4bb49767d9239dc1f45b76c00 (diff)
Added test case 531 in an attempt to repeat bug report #1561470
(http://curl.haxx.se/bug/view.cgi?id=1561470) that is said to crash when an FTP upload fails with the multi interface. It did not, but I made a failed upload still assume the control connection to be fine.
Diffstat (limited to 'tests/data/test531')
-rw-r--r--tests/data/test53155
1 files changed, 55 insertions, 0 deletions
diff --git a/tests/data/test531 b/tests/data/test531
new file mode 100644
index 000000000..0909e812a
--- /dev/null
+++ b/tests/data/test531
@@ -0,0 +1,55 @@
+<info>
+<keywords>
+FTP
+PORT
+STOR
+</keywords>
+</info>
+# Server-side
+<reply>
+<data>
+</data>
+<servercmd>
+REPLY STOR 425 Permission Denied. File Exists.
+</servercmd>
+</reply>
+
+# Client-side
+<client>
+<server>
+ftp
+</server>
+<tool>
+lib525
+</tool>
+ <name>
+FTP PORT upload using multi interface and get 425 response
+ </name>
+ <command>
+ftp://%HOSTIP:%FTPPORT/path/531 log/upload531
+</command>
+<file name="log/upload531">
+Moooooooooooo
+don't upload this
+</file>
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<strip>
+^PORT .*
+^EPRT .*
+^LPRT .*
+</strip>
+<protocol>
+USER anonymous
+PASS curl_by_daniel@haxx.se
+PWD
+CWD path
+PORT 127,0,0,1,5,109
+TYPE I
+STOR 531
+QUIT
+</protocol>
+
+</verify>