FTP
PORT
RETR
# Server-side
data
to
see
that FTP
works
so does it?
# Client-side
ftp
FTP RETR PORT with CWD
ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER -P -
# Verify data after the test has been "shot"
QUIT
# Strip all valid kinds of PORT and EPRT that curl can send
^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}\|
USER anonymous
PASS ftp@example.com
PWD
CWD a
CWD path
PORT 127,0,0,1,0,0
TYPE I
SIZE %TESTNUMBER
RETR %TESTNUMBER
QUIT