]> granicus.if.org Git - curl/commitdiff
verify that curl fails fine when an FTP URL with a too deep dir hierarchy
authorDaniel Stenberg <daniel@haxx.se>
Wed, 30 Apr 2003 20:07:37 +0000 (20:07 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 30 Apr 2003 20:07:37 +0000 (20:07 +0000)
is used

tests/data/test142 [new file with mode: 0644]

diff --git a/tests/data/test142 b/tests/data/test142
new file mode 100644 (file)
index 0000000..680e08a
--- /dev/null
@@ -0,0 +1,27 @@
+# Server-side
+<reply>
+<data>
+</data>
+</reply>
+
+# Client-side
+<client>
+ <name>
+FTP URL with too deep (100+) dir hierarchy
+ </name>
+ <command>
+ftp://%HOSTIP:%FTPPORT/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/b
+</command>
+</test>
+
+# Verify data after the test has been "shot"
+<verify>
+<errorcode>
+3
+</errorcode>
+<protocol>
+USER anonymous\r
+PASS curl_by_daniel@haxx.se\r
+PWD\r
+</protocol>
+</verify>