FTP
PORT
CURLOPT_SOCKOPTFUNCTION
# Server-side
hello
# Client-side
ftp
lib%TESTNUMBER
FTP PORT with sockopt callback refusing the accept
ftp://%HOSTIP:%FTPPORT/path/%TESTNUMBER
# Verify data after the test has been "shot"
# Strip off parts of the EPRT command that might differ
s/^EPRT \|1\|(\S*)/EPRT \|1\|/
# The TYPE command might get sent so we ignore that
^TYPE
USER anonymous
PASS ftp@example.com
PWD
CWD path
EPRT |1|
# 42 == CURLE_ABORTED_BY_CALLBACK
42