2007-01-22 21:25:56 -05:00
|
|
|
<testcase>
|
2005-04-27 05:59:47 -04:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
FTP
|
|
|
|
PORT
|
|
|
|
STOR
|
|
|
|
</keywords>
|
|
|
|
</info>
|
2001-09-13 08:51:07 -04:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
2003-04-30 16:25:39 -04:00
|
|
|
<server>
|
|
|
|
ftp
|
|
|
|
</server>
|
2001-09-13 08:51:07 -04:00
|
|
|
<name>
|
|
|
|
FTP PORT upload with CWD
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-12 11:38:26 -05:00
|
|
|
ftp://%HOSTIP:%FTPPORT/CWD/STOR/RETR/%TESTNUMBER -T log/upload%TESTNUMBER -P -
|
2001-09-13 08:51:07 -04:00
|
|
|
</command>
|
2021-03-12 11:38:26 -05:00
|
|
|
<file name="log/upload%TESTNUMBER">
|
2001-09-13 08:51:07 -04:00
|
|
|
Moooooooooooo
|
|
|
|
upload this
|
|
|
|
</file>
|
2005-01-25 16:45:03 -05:00
|
|
|
</client>
|
2001-09-13 08:51:07 -04:00
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
2007-09-17 17:44:57 -04:00
|
|
|
# Strip all valid kinds of PORT and EPRT that curl can send
|
2001-09-13 08:51:07 -04:00
|
|
|
<strip>
|
2007-09-17 17:44:57 -04:00
|
|
|
^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
|
|
|
|
^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
|
2001-09-13 08:51:07 -04:00
|
|
|
</strip>
|
|
|
|
<protocol>
|
|
|
|
USER anonymous
|
2007-02-13 17:50:16 -05:00
|
|
|
PASS ftp@example.com
|
2001-09-13 08:51:07 -04:00
|
|
|
PWD
|
2003-04-30 13:16:25 -04:00
|
|
|
CWD CWD
|
|
|
|
CWD STOR
|
|
|
|
CWD RETR
|
2001-09-13 08:51:07 -04:00
|
|
|
PORT 127,0,0,1,5,109
|
|
|
|
TYPE I
|
2021-03-12 11:38:26 -05:00
|
|
|
STOR %TESTNUMBER
|
2004-02-27 02:08:37 -05:00
|
|
|
QUIT
|
2001-09-13 08:51:07 -04:00
|
|
|
</protocol>
|
|
|
|
<upload>
|
|
|
|
Moooooooooooo
|
|
|
|
upload this
|
|
|
|
</upload>
|
|
|
|
</verify>
|
2007-01-22 21:25:56 -05:00
|
|
|
</testcase>
|