From 2677c27b0840d96febe06b1f93dbf2984e9d75db Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Tue, 21 Nov 2000 19:20:14 +0000
Subject: [PATCH] FTP test case data

---
 tests/data/command104.txt | 1 +
 tests/data/command105.txt | 2 ++
 tests/data/command106.txt | 2 ++
 tests/data/command107.txt | 1 +
 tests/data/command108.txt | 1 +
 tests/data/command109.txt | 1 +
 tests/data/command110.txt | 1 +
 tests/data/command111.txt | 1 +
 tests/data/command112.txt | 1 +
 tests/data/error111.txt   | 1 +
 tests/data/name101.txt    | 1 -
 tests/data/name104.txt    | 1 +
 tests/data/name105.txt    | 1 +
 tests/data/name106.txt    | 1 +
 tests/data/name107.txt    | 1 +
 tests/data/name108.txt    | 1 +
 tests/data/name109.txt    | 1 +
 tests/data/name110.txt    | 1 +
 tests/data/name111.txt    | 1 +
 tests/data/name112.txt    | 1 +
 tests/data/prot103.txt    | 2 +-
 tests/data/prot104.txt    | 5 +++++
 tests/data/prot105.txt    | 5 +++++
 tests/data/prot106.txt    | 6 ++++++
 tests/data/prot107.txt    | 5 +++++
 tests/data/prot108.txt    | 6 ++++++
 tests/data/prot109.txt    | 5 +++++
 tests/data/prot110.txt    | 7 +++++++
 tests/data/prot112.txt    | 5 +++++
 tests/data/reply104.txt   | 1 +
 tests/data/reply105.txt   | 6 ++++++
 tests/data/reply106.txt   | 6 ++++++
 tests/data/reply110.txt   | 2 ++
 tests/data/stdout107.txt  | 0
 tests/data/stdout108.txt  | 0
 tests/data/stdout109.txt  | 0
 tests/data/stdout110.txt  | 2 ++
 tests/data/stdout112.txt  | 0
 tests/data/upload107.txt  | 6 ++++++
 tests/data/upload108.txt  | 6 ++++++
 tests/data/upload109.txt  | 6 ++++++
 tests/data/upload112.txt  | 1 +
 42 files changed, 102 insertions(+), 2 deletions(-)
 create mode 100644 tests/data/command104.txt
 create mode 100644 tests/data/command105.txt
 create mode 100644 tests/data/command106.txt
 create mode 100644 tests/data/command107.txt
 create mode 100644 tests/data/command108.txt
 create mode 100644 tests/data/command109.txt
 create mode 100644 tests/data/command110.txt
 create mode 100644 tests/data/command111.txt
 create mode 100644 tests/data/command112.txt
 create mode 100644 tests/data/error111.txt
 create mode 100644 tests/data/name104.txt
 create mode 100644 tests/data/name105.txt
 create mode 100644 tests/data/name106.txt
 create mode 100644 tests/data/name107.txt
 create mode 100644 tests/data/name108.txt
 create mode 100644 tests/data/name109.txt
 create mode 100644 tests/data/name110.txt
 create mode 100644 tests/data/name111.txt
 create mode 100644 tests/data/name112.txt
 create mode 100644 tests/data/prot104.txt
 create mode 100644 tests/data/prot105.txt
 create mode 100644 tests/data/prot106.txt
 create mode 100644 tests/data/prot107.txt
 create mode 100644 tests/data/prot108.txt
 create mode 100644 tests/data/prot109.txt
 create mode 100644 tests/data/prot110.txt
 create mode 100644 tests/data/prot112.txt
 create mode 100644 tests/data/reply104.txt
 create mode 100644 tests/data/reply105.txt
 create mode 100644 tests/data/reply106.txt
 create mode 100644 tests/data/reply110.txt
 create mode 100644 tests/data/stdout107.txt
 create mode 100644 tests/data/stdout108.txt
 create mode 100644 tests/data/stdout109.txt
 create mode 100644 tests/data/stdout110.txt
 create mode 100644 tests/data/stdout112.txt
 create mode 100644 tests/data/upload107.txt
 create mode 100644 tests/data/upload108.txt
 create mode 100644 tests/data/upload109.txt
 create mode 100644 tests/data/upload112.txt

diff --git a/tests/data/command104.txt b/tests/data/command104.txt
new file mode 100644
index 0000000000..a217c69eba
--- /dev/null
+++ b/tests/data/command104.txt
@@ -0,0 +1 @@
+ftp://%HOSTIP:%FTPPORT/a/path/103 --head
diff --git a/tests/data/command105.txt b/tests/data/command105.txt
new file mode 100644
index 0000000000..094bb54bb8
--- /dev/null
+++ b/tests/data/command105.txt
@@ -0,0 +1,2 @@
+ftp://userdude:passfellow@%HOSTIP:%FTPPORT/103 --use-ascii
+
diff --git a/tests/data/command106.txt b/tests/data/command106.txt
new file mode 100644
index 0000000000..00abeb251d
--- /dev/null
+++ b/tests/data/command106.txt
@@ -0,0 +1,2 @@
+"ftp://%HOSTIP:%FTPPORT//path%20with%20%20spaces/and%20things2/106;type=A"
+
diff --git a/tests/data/command107.txt b/tests/data/command107.txt
new file mode 100644
index 0000000000..11c82ad965
--- /dev/null
+++ b/tests/data/command107.txt
@@ -0,0 +1 @@
+ftp://%HOSTIP:%FTPPORT/107 -T data/reply106.txt
diff --git a/tests/data/command108.txt b/tests/data/command108.txt
new file mode 100644
index 0000000000..e3306f2675
--- /dev/null
+++ b/tests/data/command108.txt
@@ -0,0 +1 @@
+ftp://%HOSTIP:%FTPPORT/CWD/STOR/RETR/108 -T data/reply106.txt -P -
diff --git a/tests/data/command109.txt b/tests/data/command109.txt
new file mode 100644
index 0000000000..118f2603bf
--- /dev/null
+++ b/tests/data/command109.txt
@@ -0,0 +1 @@
+ftp://%HOSTIP:%FTPPORT/109 -T data/reply106.txt --append
diff --git a/tests/data/command110.txt b/tests/data/command110.txt
new file mode 100644
index 0000000000..90ea561a45
--- /dev/null
+++ b/tests/data/command110.txt
@@ -0,0 +1 @@
+ftp://%HOSTIP:%FTPPORT/110 -C 20
diff --git a/tests/data/command111.txt b/tests/data/command111.txt
new file mode 100644
index 0000000000..af0e8c2a53
--- /dev/null
+++ b/tests/data/command111.txt
@@ -0,0 +1 @@
+ftp://%HOSTIP:%FTPPORT/110 -C 2000
diff --git a/tests/data/command112.txt b/tests/data/command112.txt
new file mode 100644
index 0000000000..53e5ca988c
--- /dev/null
+++ b/tests/data/command112.txt
@@ -0,0 +1 @@
+ftp://%HOSTIP:%FTPPORT/112 -T data/reply106.txt -C 40
diff --git a/tests/data/error111.txt b/tests/data/error111.txt
new file mode 100644
index 0000000000..7facc89938
--- /dev/null
+++ b/tests/data/error111.txt
@@ -0,0 +1 @@
+36
diff --git a/tests/data/name101.txt b/tests/data/name101.txt
index a15e892536..13ccd9bb07 100644
--- a/tests/data/name101.txt
+++ b/tests/data/name101.txt
@@ -1,2 +1 @@
 FTP dir list, PORT with specified IP
-
diff --git a/tests/data/name104.txt b/tests/data/name104.txt
new file mode 100644
index 0000000000..898b1c5649
--- /dev/null
+++ b/tests/data/name104.txt
@@ -0,0 +1 @@
+FTP --head to get file size only
diff --git a/tests/data/name105.txt b/tests/data/name105.txt
new file mode 100644
index 0000000000..c8d5cc6ebd
--- /dev/null
+++ b/tests/data/name105.txt
@@ -0,0 +1 @@
+FTP user+password in URL and ASCII transfer
diff --git a/tests/data/name106.txt b/tests/data/name106.txt
new file mode 100644
index 0000000000..c7da9f30a7
--- /dev/null
+++ b/tests/data/name106.txt
@@ -0,0 +1 @@
+FTP GET with type=A style ASCII URL using %20 codes
diff --git a/tests/data/name107.txt b/tests/data/name107.txt
new file mode 100644
index 0000000000..7a04a0d7d8
--- /dev/null
+++ b/tests/data/name107.txt
@@ -0,0 +1 @@
+FTP PASV upload file
diff --git a/tests/data/name108.txt b/tests/data/name108.txt
new file mode 100644
index 0000000000..48f75b5f7a
--- /dev/null
+++ b/tests/data/name108.txt
@@ -0,0 +1 @@
+FTP PORT upload with CWD
diff --git a/tests/data/name109.txt b/tests/data/name109.txt
new file mode 100644
index 0000000000..10fd5b955f
--- /dev/null
+++ b/tests/data/name109.txt
@@ -0,0 +1 @@
+FTP PASV upload append
diff --git a/tests/data/name110.txt b/tests/data/name110.txt
new file mode 100644
index 0000000000..7761f4b1c8
--- /dev/null
+++ b/tests/data/name110.txt
@@ -0,0 +1 @@
+FTP download resume with set limit
diff --git a/tests/data/name111.txt b/tests/data/name111.txt
new file mode 100644
index 0000000000..4ef5452b2f
--- /dev/null
+++ b/tests/data/name111.txt
@@ -0,0 +1 @@
+FTP download resume beyond file size
diff --git a/tests/data/name112.txt b/tests/data/name112.txt
new file mode 100644
index 0000000000..1d310a8483
--- /dev/null
+++ b/tests/data/name112.txt
@@ -0,0 +1 @@
+FTP PASV upload resume
diff --git a/tests/data/prot103.txt b/tests/data/prot103.txt
index 42e857e42b..243e8406ba 100644
--- a/tests/data/prot103.txt
+++ b/tests/data/prot103.txt
@@ -1,6 +1,6 @@
 USER anonymous
 PASS curl_by_daniel@haxx.se
-CWD a/path/
+CWD a/path
 PORT 127,0,0,1,246,33
 TYPE I
 RETR 103
diff --git a/tests/data/prot104.txt b/tests/data/prot104.txt
new file mode 100644
index 0000000000..86db1a250f
--- /dev/null
+++ b/tests/data/prot104.txt
@@ -0,0 +1,5 @@
+USER anonymous
+PASS curl_by_daniel@haxx.se
+CWD a/path
+TYPE I
+SIZE 103
diff --git a/tests/data/prot105.txt b/tests/data/prot105.txt
new file mode 100644
index 0000000000..cc7a2ebbe6
--- /dev/null
+++ b/tests/data/prot105.txt
@@ -0,0 +1,5 @@
+USER userdude
+PASS passfellow
+PASV
+TYPE A
+RETR 103
diff --git a/tests/data/prot106.txt b/tests/data/prot106.txt
new file mode 100644
index 0000000000..a357804b3e
--- /dev/null
+++ b/tests/data/prot106.txt
@@ -0,0 +1,6 @@
+USER anonymous
+PASS curl_by_daniel@haxx.se
+CWD /path with  spaces/and things2
+PASV
+TYPE A
+RETR 106
diff --git a/tests/data/prot107.txt b/tests/data/prot107.txt
new file mode 100644
index 0000000000..cf989b1806
--- /dev/null
+++ b/tests/data/prot107.txt
@@ -0,0 +1,5 @@
+USER anonymous
+PASS curl_by_daniel@haxx.se
+PASV
+TYPE I
+STOR 107
diff --git a/tests/data/prot108.txt b/tests/data/prot108.txt
new file mode 100644
index 0000000000..0b132e7268
--- /dev/null
+++ b/tests/data/prot108.txt
@@ -0,0 +1,6 @@
+USER anonymous
+PASS curl_by_daniel@haxx.se
+CWD CWD/STOR/RETR
+PORT 127,0,0,1,5,109
+TYPE I
+STOR 108
diff --git a/tests/data/prot109.txt b/tests/data/prot109.txt
new file mode 100644
index 0000000000..c8d9091996
--- /dev/null
+++ b/tests/data/prot109.txt
@@ -0,0 +1,5 @@
+USER anonymous
+PASS curl_by_daniel@haxx.se
+PASV
+TYPE I
+APPE 109
diff --git a/tests/data/prot110.txt b/tests/data/prot110.txt
new file mode 100644
index 0000000000..a7d34dd95f
--- /dev/null
+++ b/tests/data/prot110.txt
@@ -0,0 +1,7 @@
+USER anonymous
+PASS curl_by_daniel@haxx.se
+PASV
+TYPE I
+SIZE 110
+REST 20
+RETR 110
diff --git a/tests/data/prot112.txt b/tests/data/prot112.txt
new file mode 100644
index 0000000000..407ff97860
--- /dev/null
+++ b/tests/data/prot112.txt
@@ -0,0 +1,5 @@
+USER anonymous
+PASS curl_by_daniel@haxx.se
+PASV
+TYPE I
+APPE 112
diff --git a/tests/data/reply104.txt b/tests/data/reply104.txt
new file mode 100644
index 0000000000..7f64e7e40b
--- /dev/null
+++ b/tests/data/reply104.txt
@@ -0,0 +1 @@
+Content-Length: 51
diff --git a/tests/data/reply105.txt b/tests/data/reply105.txt
new file mode 100644
index 0000000000..0cfa203ddc
--- /dev/null
+++ b/tests/data/reply105.txt
@@ -0,0 +1,6 @@
+data
+    to
+      see
+that FTP
+works
+  so does it?
diff --git a/tests/data/reply106.txt b/tests/data/reply106.txt
new file mode 100644
index 0000000000..0cfa203ddc
--- /dev/null
+++ b/tests/data/reply106.txt
@@ -0,0 +1,6 @@
+data
+    to
+      see
+that FTP
+works
+  so does it?
diff --git a/tests/data/reply110.txt b/tests/data/reply110.txt
new file mode 100644
index 0000000000..9b1c181c7d
--- /dev/null
+++ b/tests/data/reply110.txt
@@ -0,0 +1,2 @@
+expected to be a file without the first part
+but we emulate that
diff --git a/tests/data/stdout107.txt b/tests/data/stdout107.txt
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/data/stdout108.txt b/tests/data/stdout108.txt
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/data/stdout109.txt b/tests/data/stdout109.txt
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/data/stdout110.txt b/tests/data/stdout110.txt
new file mode 100644
index 0000000000..ce14288d32
--- /dev/null
+++ b/tests/data/stdout110.txt
@@ -0,0 +1,2 @@
+e without the first part
+but we emulate that
diff --git a/tests/data/stdout112.txt b/tests/data/stdout112.txt
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/data/upload107.txt b/tests/data/upload107.txt
new file mode 100644
index 0000000000..0cfa203ddc
--- /dev/null
+++ b/tests/data/upload107.txt
@@ -0,0 +1,6 @@
+data
+    to
+      see
+that FTP
+works
+  so does it?
diff --git a/tests/data/upload108.txt b/tests/data/upload108.txt
new file mode 100644
index 0000000000..0cfa203ddc
--- /dev/null
+++ b/tests/data/upload108.txt
@@ -0,0 +1,6 @@
+data
+    to
+      see
+that FTP
+works
+  so does it?
diff --git a/tests/data/upload109.txt b/tests/data/upload109.txt
new file mode 100644
index 0000000000..0cfa203ddc
--- /dev/null
+++ b/tests/data/upload109.txt
@@ -0,0 +1,6 @@
+data
+    to
+      see
+that FTP
+works
+  so does it?
diff --git a/tests/data/upload112.txt b/tests/data/upload112.txt
new file mode 100644
index 0000000000..741e7b4409
--- /dev/null
+++ b/tests/data/upload112.txt
@@ -0,0 +1 @@
+o does it?
-- 
GitLab