aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test532
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-10-04 21:11:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-10-04 21:11:08 +0000
commit552b963e6defebd6d0d6d41f8c74798d856c313c (patch)
treefa50268f3f5146aba03a8446ad9b1e22cfe08867 /tests/data/test532
parente2b48366d385ff4b7ac1ee40aed2caaca4b22713 (diff)
Dmitriy Sergeyev provided an example source code that crashed CVS libcurl
but that worked nicely in 7.15.5. I converted it into test case 532 and fixed the problem.
Diffstat (limited to 'tests/data/test532')
-rw-r--r--tests/data/test53261
1 files changed, 61 insertions, 0 deletions
diff --git a/tests/data/test532 b/tests/data/test532
new file mode 100644
index 000000000..5421f81a7
--- /dev/null
+++ b/tests/data/test532
@@ -0,0 +1,61 @@
+<info>
+<keywords>
+FTP
+PASV
+RETR
+</keywords>
+</info>
+# Server-side
+<reply>
+<data>
+file contents should appear once for each file
+</data>
+<datacheck>
+file contents should appear once for each file
+file contents should appear once for each file
+file contents should appear once for each file
+file contents should appear once for each file
+</datacheck>
+</reply>
+
+# Client-side
+<client>
+<server>
+ftp
+</server>
+<tool>
+lib532
+</tool>
+ <name>
+FTP RETR same file using reset handles between each transfer
+ </name>
+ <command>
+ftp://%HOSTIP:%FTPPORT/path/532
+</command>
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<strip>
+</strip>
+<protocol>
+USER anonymous
+PASS curl_by_daniel@haxx.se
+PWD
+CWD path
+EPSV
+TYPE I
+SIZE 532
+RETR 532
+EPSV
+SIZE 532
+RETR 532
+EPSV
+SIZE 532
+RETR 532
+EPSV
+SIZE 532
+RETR 532
+QUIT
+</protocol>
+</verify>