2007-05-11 04:03:20 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
2016-01-07 20:48:05 +08:00
|
|
|
FTP
|
2007-05-11 04:03:20 +08:00
|
|
|
FTPS
|
|
|
|
PORT
|
|
|
|
STOR
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<features>
|
|
|
|
SSL
|
|
|
|
</features>
|
|
|
|
<server>
|
|
|
|
ftps
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
FTPS PORT upload with CWD
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
-k --ftp-ssl-control ftps://%HOSTIP:%FTPSPORT/CWD/STOR/RETR/%TESTNUMBER -T log/upload%TESTNUMBER -P -
|
2007-05-11 04:03:20 +08:00
|
|
|
</command>
|
2021-03-13 00:38:26 +08:00
|
|
|
<file name="log/upload%TESTNUMBER">
|
2007-05-11 04:03:20 +08:00
|
|
|
Moooooooooooo
|
|
|
|
upload this
|
|
|
|
</file>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
2007-09-18 05:44:57 +08:00
|
|
|
# Strip all valid kinds of PORT and EPRT that curl can send
|
2007-05-11 04:03:20 +08:00
|
|
|
<strip>
|
2007-09-18 05:44:57 +08: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}\|
|
2007-05-11 04:03:20 +08:00
|
|
|
</strip>
|
|
|
|
<protocol>
|
|
|
|
USER anonymous
|
|
|
|
PASS ftp@example.com
|
|
|
|
PBSZ 0
|
|
|
|
PROT C
|
|
|
|
PWD
|
|
|
|
CWD CWD
|
|
|
|
CWD STOR
|
|
|
|
CWD RETR
|
|
|
|
PORT 127,0,0,1,5,109
|
|
|
|
TYPE I
|
2021-03-13 00:38:26 +08:00
|
|
|
STOR %TESTNUMBER
|
2007-05-11 04:03:20 +08:00
|
|
|
QUIT
|
|
|
|
</protocol>
|
|
|
|
<upload>
|
|
|
|
Moooooooooooo
|
|
|
|
upload this
|
|
|
|
</upload>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|