]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
add test case 261, response code 226 to TYPE
authorDaniel Stenberg <daniel@haxx.se>
Tue, 24 May 2005 09:40:58 +0000 (09:40 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 24 May 2005 09:40:58 +0000 (09:40 +0000)
tests/data/Makefile.am
tests/data/test261 [new file with mode: 0644]

index 717d7a1bea4727308f7a87331617cb37bc61ab54..8d64cf81ae5b7b654509522ee334521a6f33aba8 100644 (file)
@@ -32,4 +32,4 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46           \
  test231 test232 test228 test229 test233 test234 test235 test236 test520   \
  test237 test238 test239 test243 test245 test246 test247 test248 test249   \
  test250 test251 test252 test253 test254 test255 test521 test522 test523   \
- test256 test257 test258 test259 test260
+ test256 test257 test258 test259 test260 test261
diff --git a/tests/data/test261 b/tests/data/test261
new file mode 100644 (file)
index 0000000..419bf9b
--- /dev/null
@@ -0,0 +1,49 @@
+<info>
+<keywords>
+FTP
+EPSV
+RETR
+</keywords>
+</info>
+#
+# Server-side
+<reply>
+<data>
+hepp
+</data>
+<servercmd>
+REPLY TYPE 226 Kind of on the positive side!
+</servercmd>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+ftp
+</server>
+ <name>
+FTP RETR with 226 response code to TYPE
+ </name>
+ <command>
+ftp://%HOSTIP:%FTPPORT/261
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<strip>
+filter off really nothing
+</strip>
+<protocol>
+USER anonymous\r
+PASS curl_by_daniel@haxx.se\r
+PWD\r
+EPSV\r
+TYPE I\r
+SIZE 261\r
+RETR 261\r
+QUIT\r
+</protocol>
+</verify>