]> granicus.if.org Git - curl/commitdiff
FTP test case data
authorDaniel Stenberg <daniel@haxx.se>
Tue, 21 Nov 2000 19:20:14 +0000 (19:20 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 21 Nov 2000 19:20:14 +0000 (19:20 +0000)
42 files changed:
tests/data/command104.txt [new file with mode: 0644]
tests/data/command105.txt [new file with mode: 0644]
tests/data/command106.txt [new file with mode: 0644]
tests/data/command107.txt [new file with mode: 0644]
tests/data/command108.txt [new file with mode: 0644]
tests/data/command109.txt [new file with mode: 0644]
tests/data/command110.txt [new file with mode: 0644]
tests/data/command111.txt [new file with mode: 0644]
tests/data/command112.txt [new file with mode: 0644]
tests/data/error111.txt [new file with mode: 0644]
tests/data/name101.txt
tests/data/name104.txt [new file with mode: 0644]
tests/data/name105.txt [new file with mode: 0644]
tests/data/name106.txt [new file with mode: 0644]
tests/data/name107.txt [new file with mode: 0644]
tests/data/name108.txt [new file with mode: 0644]
tests/data/name109.txt [new file with mode: 0644]
tests/data/name110.txt [new file with mode: 0644]
tests/data/name111.txt [new file with mode: 0644]
tests/data/name112.txt [new file with mode: 0644]
tests/data/prot103.txt
tests/data/prot104.txt [new file with mode: 0644]
tests/data/prot105.txt [new file with mode: 0644]
tests/data/prot106.txt [new file with mode: 0644]
tests/data/prot107.txt [new file with mode: 0644]
tests/data/prot108.txt [new file with mode: 0644]
tests/data/prot109.txt [new file with mode: 0644]
tests/data/prot110.txt [new file with mode: 0644]
tests/data/prot112.txt [new file with mode: 0644]
tests/data/reply104.txt [new file with mode: 0644]
tests/data/reply105.txt [new file with mode: 0644]
tests/data/reply106.txt [new file with mode: 0644]
tests/data/reply110.txt [new file with mode: 0644]
tests/data/stdout107.txt [new file with mode: 0644]
tests/data/stdout108.txt [new file with mode: 0644]
tests/data/stdout109.txt [new file with mode: 0644]
tests/data/stdout110.txt [new file with mode: 0644]
tests/data/stdout112.txt [new file with mode: 0644]
tests/data/upload107.txt [new file with mode: 0644]
tests/data/upload108.txt [new file with mode: 0644]
tests/data/upload109.txt [new file with mode: 0644]
tests/data/upload112.txt [new file with mode: 0644]

diff --git a/tests/data/command104.txt b/tests/data/command104.txt
new file mode 100644 (file)
index 0000000..a217c69
--- /dev/null
@@ -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 (file)
index 0000000..094bb54
--- /dev/null
@@ -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 (file)
index 0000000..00abeb2
--- /dev/null
@@ -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 (file)
index 0000000..11c82ad
--- /dev/null
@@ -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 (file)
index 0000000..e3306f2
--- /dev/null
@@ -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 (file)
index 0000000..118f260
--- /dev/null
@@ -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 (file)
index 0000000..90ea561
--- /dev/null
@@ -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 (file)
index 0000000..af0e8c2
--- /dev/null
@@ -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 (file)
index 0000000..53e5ca9
--- /dev/null
@@ -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 (file)
index 0000000..7facc89
--- /dev/null
@@ -0,0 +1 @@
+36
index a15e892536ad9e7a526d832dc145bfdf44a23483..13ccd9bb074a15fc113bb2340bd806c7947db895 100644 (file)
@@ -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 (file)
index 0000000..898b1c5
--- /dev/null
@@ -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 (file)
index 0000000..c8d5cc6
--- /dev/null
@@ -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 (file)
index 0000000..c7da9f3
--- /dev/null
@@ -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 (file)
index 0000000..7a04a0d
--- /dev/null
@@ -0,0 +1 @@
+FTP PASV upload file
diff --git a/tests/data/name108.txt b/tests/data/name108.txt
new file mode 100644 (file)
index 0000000..48f75b5
--- /dev/null
@@ -0,0 +1 @@
+FTP PORT upload with CWD
diff --git a/tests/data/name109.txt b/tests/data/name109.txt
new file mode 100644 (file)
index 0000000..10fd5b9
--- /dev/null
@@ -0,0 +1 @@
+FTP PASV upload append
diff --git a/tests/data/name110.txt b/tests/data/name110.txt
new file mode 100644 (file)
index 0000000..7761f4b
--- /dev/null
@@ -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 (file)
index 0000000..4ef5452
--- /dev/null
@@ -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 (file)
index 0000000..1d310a8
--- /dev/null
@@ -0,0 +1 @@
+FTP PASV upload resume
index 42e857e42b40a1b35d27b50da2af0057e35f1d84..243e8406ba2a516c2819bc61ecfa01825a2773ce 100644 (file)
@@ -1,6 +1,6 @@
 USER anonymous\r
 PASS curl_by_daniel@haxx.se\r
-CWD a/path/\r
+CWD a/path\r
 PORT 127,0,0,1,246,33\r
 TYPE I\r
 RETR 103\r
diff --git a/tests/data/prot104.txt b/tests/data/prot104.txt
new file mode 100644 (file)
index 0000000..86db1a2
--- /dev/null
@@ -0,0 +1,5 @@
+USER anonymous\r
+PASS curl_by_daniel@haxx.se\r
+CWD a/path\r
+TYPE I\r
+SIZE 103\r
diff --git a/tests/data/prot105.txt b/tests/data/prot105.txt
new file mode 100644 (file)
index 0000000..cc7a2eb
--- /dev/null
@@ -0,0 +1,5 @@
+USER userdude\r
+PASS passfellow\r
+PASV\r
+TYPE A\r
+RETR 103\r
diff --git a/tests/data/prot106.txt b/tests/data/prot106.txt
new file mode 100644 (file)
index 0000000..a357804
--- /dev/null
@@ -0,0 +1,6 @@
+USER anonymous\r
+PASS curl_by_daniel@haxx.se\r
+CWD /path with  spaces/and things2\r
+PASV\r
+TYPE A\r
+RETR 106\r
diff --git a/tests/data/prot107.txt b/tests/data/prot107.txt
new file mode 100644 (file)
index 0000000..cf989b1
--- /dev/null
@@ -0,0 +1,5 @@
+USER anonymous\r
+PASS curl_by_daniel@haxx.se\r
+PASV\r
+TYPE I\r
+STOR 107\r
diff --git a/tests/data/prot108.txt b/tests/data/prot108.txt
new file mode 100644 (file)
index 0000000..0b132e7
--- /dev/null
@@ -0,0 +1,6 @@
+USER anonymous\r
+PASS curl_by_daniel@haxx.se\r
+CWD CWD/STOR/RETR\r
+PORT 127,0,0,1,5,109\r
+TYPE I\r
+STOR 108\r
diff --git a/tests/data/prot109.txt b/tests/data/prot109.txt
new file mode 100644 (file)
index 0000000..c8d9091
--- /dev/null
@@ -0,0 +1,5 @@
+USER anonymous\r
+PASS curl_by_daniel@haxx.se\r
+PASV\r
+TYPE I\r
+APPE 109\r
diff --git a/tests/data/prot110.txt b/tests/data/prot110.txt
new file mode 100644 (file)
index 0000000..a7d34dd
--- /dev/null
@@ -0,0 +1,7 @@
+USER anonymous\r
+PASS curl_by_daniel@haxx.se\r
+PASV\r
+TYPE I\r
+SIZE 110\r
+REST 20\r
+RETR 110\r
diff --git a/tests/data/prot112.txt b/tests/data/prot112.txt
new file mode 100644 (file)
index 0000000..407ff97
--- /dev/null
@@ -0,0 +1,5 @@
+USER anonymous\r
+PASS curl_by_daniel@haxx.se\r
+PASV\r
+TYPE I\r
+APPE 112\r
diff --git a/tests/data/reply104.txt b/tests/data/reply104.txt
new file mode 100644 (file)
index 0000000..7f64e7e
--- /dev/null
@@ -0,0 +1 @@
+Content-Length: 51
diff --git a/tests/data/reply105.txt b/tests/data/reply105.txt
new file mode 100644 (file)
index 0000000..0cfa203
--- /dev/null
@@ -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 (file)
index 0000000..0cfa203
--- /dev/null
@@ -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 (file)
index 0000000..9b1c181
--- /dev/null
@@ -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 (file)
index 0000000..e69de29
diff --git a/tests/data/stdout108.txt b/tests/data/stdout108.txt
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/data/stdout109.txt b/tests/data/stdout109.txt
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/data/stdout110.txt b/tests/data/stdout110.txt
new file mode 100644 (file)
index 0000000..ce14288
--- /dev/null
@@ -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 (file)
index 0000000..e69de29
diff --git a/tests/data/upload107.txt b/tests/data/upload107.txt
new file mode 100644 (file)
index 0000000..0cfa203
--- /dev/null
@@ -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 (file)
index 0000000..0cfa203
--- /dev/null
@@ -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 (file)
index 0000000..0cfa203
--- /dev/null
@@ -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 (file)
index 0000000..741e7b4
--- /dev/null
@@ -0,0 +1 @@
+o does it?