This commit is contained in:
Daniel Stenberg 2001-06-12 09:12:59 +00:00
Родитель e450888b15
Коммит 6475600afa
9 изменённых файлов: 299 добавлений и 3 удалений

Просмотреть файл

@ -5,6 +5,7 @@ test:
[ -f test1 ] || ln -s $(srcdir)/test* .
EXTRA_DIST = \
test1 test11 test14 test3 test400 test7 \
test10 test12 test2 test300 test5 test8 \
test100 test13 test200 test4 test6 test9
test1 test102 test106 test13 test3 test400 test8 \
test10 test103 test107 test14 test300 test5 test9 \
test100 test104 test11 test2 test33 test6 \
test101 test105 test12 test200 test4 test7

41
tests/data/test101 Normal file
Просмотреть файл

@ -0,0 +1,41 @@
# Server-side
<reply>
<data>
total 20
drwxr-xr-x 8 98 98 512 Oct 22 13:06 .
drwxr-xr-x 8 98 98 512 Oct 22 13:06 ..
drwxr-xr-x 2 98 98 512 May 2 1996 .NeXT
-r--r--r-- 1 0 1 35 Jul 16 1996 README
lrwxrwxrwx 1 0 1 7 Dec 9 1999 bin -> usr/bin
dr-xr-xr-x 2 0 1 512 Oct 1 1997 dev
drwxrwxrwx 2 98 98 512 May 29 16:04 download.html
dr-xr-xr-x 2 0 1 512 Nov 30 1995 etc
drwxrwxrwx 2 98 1 512 Oct 30 14:33 pub
dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
</data>
</reply>
# Client-side
<client>
<name>
FTP dir list, PORT with specified IP
</name>
<command>
ftp://%HOSTIP:%FTPPORT/ -P %HOSTIP
</command>
</test>
# Verify data after the test has been "shot"
<verify>
<strip>
^PORT 127,0,0,1,.*
</strip>
<protocol>
USER anonymous
PASS curl_by_daniel@haxx.se
PWD
PORT 127,0,0,1,243,212
TYPE A
LIST
</protocol>
</verify>

33
tests/data/test102 Normal file
Просмотреть файл

@ -0,0 +1,33 @@
# Server-side
<reply>
<data>
data
to
see
that FTP
works
so does it?
</data>
</reply>
# Client-side
<client>
<name>
FTP RETR PASV
</name>
<command>
ftp://%HOSTIP:%FTPPORT/102
</command>
</test>
# Verify data after the test has been "shot"
<verify>
<protocol>
USER anonymous
PASS curl_by_daniel@haxx.se
PWD
PASV
TYPE I
RETR 102
</protocol>
</verify>

37
tests/data/test103 Normal file
Просмотреть файл

@ -0,0 +1,37 @@
# Server-side
<reply>
<data>
data
to
see
that FTP
works
so does it?
</data>
</reply>
# Client-side
<client>
<name>
FTP RETR PORT with CWD
</name>
<command>
ftp://%HOSTIP:%FTPPORT/a/path/103 -P -
</command>
</test>
# Verify data after the test has been "shot"
<verify>
<strip>
^PORT .*
</strip>
<protocol>
USER anonymous
PASS curl_by_daniel@haxx.se
PWD
CWD a/path
PORT 127,0,0,1,246,33
TYPE I
RETR 103
</protocol>
</verify>

29
tests/data/test104 Normal file
Просмотреть файл

@ -0,0 +1,29 @@
# Server-side
<reply>
<size>
51
</size>
</reply>
# Client-side
<client>
<name>
FTP --head to get file size only
</name>
<command>
ftp://%HOSTIP:%FTPPORT/a/path/103 --head
</command>
</test>
# Verify data after the test has been "shot"
<verify>
<protocol>
USER anonymous
PASS curl_by_daniel@haxx.se
PWD
CWD a/path
MDTM 103
TYPE I
SIZE 103
</protocol>
</verify>

33
tests/data/test105 Normal file
Просмотреть файл

@ -0,0 +1,33 @@
# Server-side
<reply>
<data>
data
to
see
that FTP
works
so does it?
</data>
</reply>
# Client-side
<client>
<name>
FTP user+password in URL and ASCII transfer
</name>
<command>
ftp://userdude:passfellow@%HOSTIP:%FTPPORT/103 --use-ascii
</command>
</test>
# Verify data after the test has been "shot"
<verify>
<protocol>
USER userdude
PASS passfellow
PWD
PASV
TYPE A
RETR 103
</protocol>
</verify>

34
tests/data/test106 Normal file
Просмотреть файл

@ -0,0 +1,34 @@
# Server-side
<reply>
<data>
data
to
see
that FTP
works
so does it?
</data>
</reply>
# Client-side
<client>
<name>
FTP GET with type=A style ASCII URL using %20 codes
</name>
<command>
"ftp://%HOSTIP:%FTPPORT//path%20with%20%20spaces/and%20things2/106;type=A"
</command>
</test>
# Verify data after the test has been "shot"
<verify>
<protocol>
USER anonymous
PASS curl_by_daniel@haxx.se
PWD
CWD /path with spaces/and things2
PASV
TYPE A
RETR 106
</protocol>
</verify>

38
tests/data/test107 Normal file
Просмотреть файл

@ -0,0 +1,38 @@
# Client-side
<client>
<name>
FTP PASV upload file
</name>
<file name="log/test107.txt">
data
to
see
that FTP
works
so does it?
</file>
<command>
ftp://%HOSTIP:%FTPPORT/107 -T log/test107.txt
</command>
</test>
# Verify data after the test has been "shot"
<verify>
<upload>
data
to
see
that FTP
works
so does it?
</upload>
<protocol>
USER anonymous
PASS curl_by_daniel@haxx.se
PWD
PASV
TYPE I
STOR 107
</protocol>
</verify>

50
tests/data/test33 Normal file
Просмотреть файл

@ -0,0 +1,50 @@
# Server-side
<reply>
<data>
</data>
</reply>
# Client-side
<client>
<name>
HTTP PUT with resume
</name>
<file name="log/test33.txt">
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
012345678
</file>
<command>
http://%HOSTIP:%HOSTPORT/33 -Tlog/test33.txt -C 50
</command>
</test>
# Verify data after the test has been "shot"
<verify>
<strip>
^User-Agent:.*
</strip>
<protocol>
PUT /33 HTTP/1.1
Content-Range: bytes 50-99/100
User-Agent: curl/7.6 (sparc-sun-solaris2.7) libcurl 7.6-pre4 (SSL 0.9.6) (krb4 enabled)
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Content-Length: 50
012345678
012345678
012345678
012345678
012345678
</protocol>
</verify>