mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 03:25:04 -05:00
14424f7058
level stuff. The FTP server communicates with sockfilt using perl's open2(). This enables easier IPv6 support and hopefully FTP-SSL support in the future. Added four test cases for FTP-ipv6.
48 lines
562 B
Plaintext
48 lines
562 B
Plaintext
# Server-side
|
|
<reply>
|
|
<data>
|
|
data
|
|
to
|
|
see
|
|
that FTP
|
|
works
|
|
so does it?
|
|
</data>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
ftp
|
|
</server>
|
|
<name>
|
|
FTP RETR PORT with CWD
|
|
</name>
|
|
<command>
|
|
ftp://%HOSTIP:%FTPPORT/a/path/103 -P -
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<strippart>
|
|
s/^LPRT.*/LPRT/
|
|
s/^EPRT.*/EPRT/
|
|
s/^(PORT 127,0,0,1,)([0-9,]+)/$1/
|
|
</strippart>
|
|
<protocol>
|
|
USER anonymous
|
|
PASS curl_by_daniel@haxx.se
|
|
PWD
|
|
CWD a
|
|
CWD path
|
|
EPRT
|
|
LPRT
|
|
PORT 127,0,0,1,
|
|
TYPE I
|
|
SIZE 103
|
|
RETR 103
|
|
QUIT
|
|
</protocol>
|
|
</verify>
|