aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test562
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-04-30 09:02:39 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-04-30 09:02:39 +0000
commit6b95c4e358f3bcaf60471353c54c5c32d596a536 (patch)
tree232a0fc6bcbe864c9ab518a2e8823c718e40ce06 /tests/data/test562
parent22e2ecb003eb942cfbf78a206b9daff370d74b17 (diff)
- I was going to fix issue #59 in KNOWN_BUGS
If the CURLOPT_PORT option is used on an FTP URL like "ftp://example.com/file;type=A" the ";type=A" is stripped off. I added test case 562 to verify, only to find out that I couldn't repeat this bug so I hereby consider it not a bug anymore!
Diffstat (limited to 'tests/data/test562')
-rw-r--r--tests/data/test56253
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/data/test562 b/tests/data/test562
new file mode 100644
index 000000000..070cf7aa1
--- /dev/null
+++ b/tests/data/test562
@@ -0,0 +1,53 @@
+<testcase>
+<info>
+<keywords>
+FTP
+PASV
+RETR
+</keywords>
+</info>
+# Server-side
+<reply>
+<data>
+silly data
+over FTP
+</data>
+</reply>
+
+# Client-side
+<client>
+<server>
+ftp
+</server>
+<tool>
+lib562
+</tool>
+ <name>
+FTP a type=A URL and CURLOPT_PORT set
+ </name>
+
+# note that we need quotes around the URL below to make sure the shell doesn't
+# treat the semicolon as a separator!
+ <command>
+'ftp://%HOSTIP:23456/562;type=A' %FTPPORT
+</command>
+
+</client>
+
+# Verify data after the test has been "shot"
+#
+# There's no MTDM in the protocol here since this code doesn't ask for the
+# time/date of the file
+<verify>
+<protocol>
+USER anonymous
+PASS ftp@example.com
+PWD
+EPSV
+TYPE A
+SIZE 562
+RETR 562
+QUIT
+</protocol>
+</verify>
+</testcase>