adjusted to new FTP commands in the command sequence

This commit is contained in:
Daniel Stenberg 2001-11-28 13:45:50 +00:00
parent d09b436937
commit cabb46db3d
18 changed files with 44 additions and 7 deletions

View File

@ -34,6 +34,7 @@ PWD
CWD a/path CWD a/path
PORT 127,0,0,1,246,33 PORT 127,0,0,1,246,33
TYPE I TYPE I
SIZE 103
RETR 103 RETR 103
</protocol> </protocol>
</verify> </verify>

View File

@ -18,6 +18,10 @@ FTP user+password in URL and ASCII transfer
<command> <command>
ftp://userdude:passfellow@%HOSTIP:%FTPPORT/103 --use-ascii ftp://userdude:passfellow@%HOSTIP:%FTPPORT/103 --use-ascii
</command> </command>
<file name="log/ftpserver.cmd">
REPLY EPSV 500 no such command
REPLY SIZE 500 no such command
</file>
</test> </test>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"
@ -26,8 +30,10 @@ ftp://userdude:passfellow@%HOSTIP:%FTPPORT/103 --use-ascii
USER userdude USER userdude
PASS passfellow PASS passfellow
PWD PWD
EPSV
PASV PASV
TYPE A TYPE A
SIZE 103
RETR 103 RETR 103
</protocol> </protocol>
</verify> </verify>

View File

@ -27,8 +27,9 @@ USER anonymous
PASS curl_by_daniel@haxx.se PASS curl_by_daniel@haxx.se
PWD PWD
CWD /path with spaces/and things2 CWD /path with spaces/and things2
PASV EPSV
TYPE A TYPE A
SIZE 106
RETR 106 RETR 106
</protocol> </protocol>
</verify> </verify>

View File

@ -31,7 +31,7 @@ works
USER anonymous USER anonymous
PASS curl_by_daniel@haxx.se PASS curl_by_daniel@haxx.se
PWD PWD
PASV EPSV
TYPE I TYPE I
STOR 107 STOR 107
</protocol> </protocol>

View File

@ -26,7 +26,7 @@ Moooooooooooo
USER anonymous USER anonymous
PASS curl_by_daniel@haxx.se PASS curl_by_daniel@haxx.se
PWD PWD
PASV EPSV
TYPE I TYPE I
APPE 109 APPE 109
</protocol> </protocol>

View File

@ -17,6 +17,9 @@ FTP download resume with set limit
<command> <command>
ftp://%HOSTIP:%FTPPORT/110 -C 20 ftp://%HOSTIP:%FTPPORT/110 -C 20
</command> </command>
<file name="log/ftpserver.cmd">
REPLY EPSV 500 no such command
</file>
</test> </test>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"
@ -27,6 +30,7 @@ ftp://%HOSTIP:%FTPPORT/110 -C 20
USER anonymous USER anonymous
PASS curl_by_daniel@haxx.se PASS curl_by_daniel@haxx.se
PWD PWD
EPSV
PASV PASV
TYPE I TYPE I
SIZE 110 SIZE 110

View File

@ -26,7 +26,7 @@ ftp://%HOSTIP:%FTPPORT/111 -C 2000
USER anonymous USER anonymous
PASS curl_by_daniel@haxx.se PASS curl_by_daniel@haxx.se
PWD PWD
PASV EPSV
TYPE I TYPE I
SIZE 111 SIZE 111
</protocol> </protocol>

View File

@ -25,7 +25,7 @@ worx?
USER anonymous USER anonymous
PASS curl_by_daniel@haxx.se PASS curl_by_daniel@haxx.se
PWD PWD
PASV EPSV
TYPE I TYPE I
APPE 112 APPE 112
</protocol> </protocol>

View File

@ -12,6 +12,7 @@ ftp://%HOSTIP:%FTPPORT/115
</command> </command>
<file name="log/ftpserver.cmd"> <file name="log/ftpserver.cmd">
REPLY PASV 314 bluah you f00l! REPLY PASV 314 bluah you f00l!
REPLY EPSV 314 bluah you f00l!
</file> </file>
</test> </test>
@ -24,6 +25,7 @@ REPLY PASV 314 bluah you f00l!
USER anonymous USER anonymous
PASS curl_by_daniel@haxx.se PASS curl_by_daniel@haxx.se
PWD PWD
EPSV
PASV PASV
</protocol> </protocol>
</verify> </verify>

View File

@ -11,6 +11,7 @@ FTP download, failed TYPE
ftp://%HOSTIP:%FTPPORT/117 ftp://%HOSTIP:%FTPPORT/117
</command> </command>
<file name="log/ftpserver.cmd"> <file name="log/ftpserver.cmd">
REPLY EPSV 314 bluah you f00l!
REPLY TYPE 314 bluah you f00l! REPLY TYPE 314 bluah you f00l!
</file> </file>
</test> </test>
@ -24,6 +25,7 @@ REPLY TYPE 314 bluah you f00l!
USER anonymous USER anonymous
PASS curl_by_daniel@haxx.se PASS curl_by_daniel@haxx.se
PWD PWD
EPSV
PASV PASV
TYPE I TYPE I
</protocol> </protocol>

View File

@ -12,6 +12,7 @@ ftp://%HOSTIP:%FTPPORT/118
</command> </command>
<file name="log/ftpserver.cmd"> <file name="log/ftpserver.cmd">
REPLY RETR 314 bluah you f00l! REPLY RETR 314 bluah you f00l!
REPLY EPSV 314 bluah you f00l!
</file> </file>
</test> </test>
@ -24,8 +25,10 @@ REPLY RETR 314 bluah you f00l!
USER anonymous USER anonymous
PASS curl_by_daniel@haxx.se PASS curl_by_daniel@haxx.se
PWD PWD
EPSV
PASV PASV
TYPE I TYPE I
SIZE 118
RETR 118 RETR 118
</protocol> </protocol>
</verify> </verify>

View File

@ -30,6 +30,7 @@ USER anonymous
PASS curl_by_daniel@haxx.se PASS curl_by_daniel@haxx.se
PWD PWD
TYPE I TYPE I
SIZE 119
RETR 119 RETR 119
</protocol> </protocol>
</verify> </verify>

View File

@ -18,6 +18,9 @@ ftp download with post-quote delete operation
<command> <command>
ftp://%HOSTIP:%FTPPORT/120 -Q "-DELE file" ftp://%HOSTIP:%FTPPORT/120 -Q "-DELE file"
</command> </command>
<file name="log/ftpserver.cmd">
REPLY EPSV 314 bluah you f00l!
</file>
</test> </test>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"
@ -26,8 +29,10 @@ ftp://%HOSTIP:%FTPPORT/120 -Q "-DELE file"
USER anonymous USER anonymous
PASS curl_by_daniel@haxx.se PASS curl_by_daniel@haxx.se
PWD PWD
EPSV
PASV PASV
TYPE I TYPE I
SIZE 120
RETR 120 RETR 120
DELE file DELE file
</protocol> </protocol>

View File

@ -27,8 +27,9 @@ USER anonymous
PASS curl_by_daniel@haxx.se PASS curl_by_daniel@haxx.se
PWD PWD
DELE before_transfer DELE before_transfer
PASV EPSV
TYPE I TYPE I
SIZE 121
RETR 121 RETR 121
DELE after_transfer DELE after_transfer
</protocol> </protocol>

View File

@ -13,6 +13,9 @@ FTP download resume with whole file already downloaded
<command> <command>
ftp://%HOSTIP:%FTPPORT/122 -C 5 ftp://%HOSTIP:%FTPPORT/122 -C 5
</command> </command>
<file name="log/ftpserver.cmd">
REPLY EPSV 500 no such command
</file>
</test> </test>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"
@ -21,6 +24,7 @@ ftp://%HOSTIP:%FTPPORT/122 -C 5
USER anonymous USER anonymous
PASS curl_by_daniel@haxx.se PASS curl_by_daniel@haxx.se
PWD PWD
EPSV
PASV PASV
TYPE I TYPE I
SIZE 122 SIZE 122

View File

@ -21,7 +21,7 @@ ftp://%HOSTIP:%FTPPORT/123 -T log/upload123 -C 51
USER anonymous USER anonymous
PASS curl_by_daniel@haxx.se PASS curl_by_daniel@haxx.se
PWD PWD
PASV EPSV
TYPE I TYPE I
</protocol> </protocol>
</verify> </verify>

View File

@ -15,6 +15,7 @@ ftp://%HOSTIP:%FTPPORT/124
</command> </command>
<file name="log/ftpserver.cmd"> <file name="log/ftpserver.cmd">
REPLY PWD 314 bluah you f00l! REPLY PWD 314 bluah you f00l!
REPLY EPSV 314 bluah you f00l!
</file> </file>
</test> </test>
@ -24,8 +25,10 @@ REPLY PWD 314 bluah you f00l!
USER anonymous USER anonymous
PASS curl_by_daniel@haxx.se PASS curl_by_daniel@haxx.se
PWD PWD
EPSV
PASV PASV
TYPE I TYPE I
SIZE 124
RETR 124 RETR 124
</protocol> </protocol>
</verify> </verify>

View File

@ -25,6 +25,9 @@ FTPS dir list PASV
<command> <command>
ftps://%HOSTIP:%FTPSPORT/ ftps://%HOSTIP:%FTPSPORT/
</command> </command>
<file name="log/ftpserver.cmd">
REPLY EPSV 500 no such command
</file>
</test> </test>
# #
@ -37,6 +40,7 @@ filter off really nothing
USER anonymous USER anonymous
PASS curl_by_daniel@haxx.se PASS curl_by_daniel@haxx.se
PWD PWD
EPSV
PASV PASV
TYPE A TYPE A
LIST LIST