aboutsummaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-11-21 19:20:14 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-11-21 19:20:14 +0000
commit2677c27b0840d96febe06b1f93dbf2984e9d75db (patch)
treef1b34c00538477f78accf85e714679cbfceb45db /tests/data
parentc93816652081a39f2e8eabce9bdb0d32aa82a455 (diff)
FTP test case data
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/command104.txt1
-rw-r--r--tests/data/command105.txt2
-rw-r--r--tests/data/command106.txt2
-rw-r--r--tests/data/command107.txt1
-rw-r--r--tests/data/command108.txt1
-rw-r--r--tests/data/command109.txt1
-rw-r--r--tests/data/command110.txt1
-rw-r--r--tests/data/command111.txt1
-rw-r--r--tests/data/command112.txt1
-rw-r--r--tests/data/error111.txt1
-rw-r--r--tests/data/name101.txt1
-rw-r--r--tests/data/name104.txt1
-rw-r--r--tests/data/name105.txt1
-rw-r--r--tests/data/name106.txt1
-rw-r--r--tests/data/name107.txt1
-rw-r--r--tests/data/name108.txt1
-rw-r--r--tests/data/name109.txt1
-rw-r--r--tests/data/name110.txt1
-rw-r--r--tests/data/name111.txt1
-rw-r--r--tests/data/name112.txt1
-rw-r--r--tests/data/prot103.txt2
-rw-r--r--tests/data/prot104.txt5
-rw-r--r--tests/data/prot105.txt5
-rw-r--r--tests/data/prot106.txt6
-rw-r--r--tests/data/prot107.txt5
-rw-r--r--tests/data/prot108.txt6
-rw-r--r--tests/data/prot109.txt5
-rw-r--r--tests/data/prot110.txt7
-rw-r--r--tests/data/prot112.txt5
-rw-r--r--tests/data/reply104.txt1
-rw-r--r--tests/data/reply105.txt6
-rw-r--r--tests/data/reply106.txt6
-rw-r--r--tests/data/reply110.txt2
-rw-r--r--tests/data/stdout107.txt0
-rw-r--r--tests/data/stdout108.txt0
-rw-r--r--tests/data/stdout109.txt0
-rw-r--r--tests/data/stdout110.txt2
-rw-r--r--tests/data/stdout112.txt0
-rw-r--r--tests/data/upload107.txt6
-rw-r--r--tests/data/upload108.txt6
-rw-r--r--tests/data/upload109.txt6
-rw-r--r--tests/data/upload112.txt1
42 files changed, 102 insertions, 2 deletions
diff --git a/tests/data/command104.txt b/tests/data/command104.txt
new file mode 100644
index 000000000..a217c69eb
--- /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 000000000..094bb54bb
--- /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 000000000..00abeb251
--- /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 000000000..11c82ad96
--- /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 000000000..e3306f267
--- /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 000000000..118f2603b
--- /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 000000000..90ea561a4
--- /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 000000000..af0e8c2a5
--- /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 000000000..53e5ca988
--- /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 000000000..7facc8993
--- /dev/null
+++ b/tests/data/error111.txt
@@ -0,0 +1 @@
+36
diff --git a/tests/data/name101.txt b/tests/data/name101.txt
index a15e89253..13ccd9bb0 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 000000000..898b1c564
--- /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 000000000..c8d5cc6eb
--- /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 000000000..c7da9f30a
--- /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 000000000..7a04a0d7d
--- /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 000000000..48f75b5f7
--- /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 000000000..10fd5b955
--- /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 000000000..7761f4b1c
--- /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 000000000..4ef5452b2
--- /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 000000000..1d310a848
--- /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 42e857e42..243e8406b 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 000000000..86db1a250
--- /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 000000000..cc7a2ebbe
--- /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 000000000..a357804b3
--- /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 000000000..cf989b180
--- /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 000000000..0b132e726
--- /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 000000000..c8d909199
--- /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 000000000..a7d34dd95
--- /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 000000000..407ff9786
--- /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 000000000..7f64e7e40
--- /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 000000000..0cfa203dd
--- /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 000000000..0cfa203dd
--- /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 000000000..9b1c181c7
--- /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 000000000..e69de29bb
--- /dev/null
+++ b/tests/data/stdout107.txt
diff --git a/tests/data/stdout108.txt b/tests/data/stdout108.txt
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/data/stdout108.txt
diff --git a/tests/data/stdout109.txt b/tests/data/stdout109.txt
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/data/stdout109.txt
diff --git a/tests/data/stdout110.txt b/tests/data/stdout110.txt
new file mode 100644
index 000000000..ce14288d3
--- /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 000000000..e69de29bb
--- /dev/null
+++ b/tests/data/stdout112.txt
diff --git a/tests/data/upload107.txt b/tests/data/upload107.txt
new file mode 100644
index 000000000..0cfa203dd
--- /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 000000000..0cfa203dd
--- /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 000000000..0cfa203dd
--- /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 000000000..741e7b440
--- /dev/null
+++ b/tests/data/upload112.txt
@@ -0,0 +1 @@
+o does it?