2012-06-05 01:40:04 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
FTP
|
|
|
|
RETR
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data nocheck="yes">
|
|
|
|
fooo
|
|
|
|
mooo
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
# this relies on the debug feature to allow us to set directory to store the
|
|
|
|
# -O output in, using the CURL_TESTDIR variable
|
|
|
|
<features>
|
|
|
|
debug
|
|
|
|
</features>
|
|
|
|
<server>
|
|
|
|
ftp
|
|
|
|
</server>
|
|
|
|
<name>
|
2012-06-05 18:31:57 +08:00
|
|
|
FTP download, file without C-D inside, using -O -i, without -D
|
2012-06-05 01:40:04 +08:00
|
|
|
</name>
|
|
|
|
<setenv>
|
|
|
|
CURL_TESTDIR=%PWD/log
|
|
|
|
</setenv>
|
|
|
|
<command option="no-output,no-include">
|
2021-03-13 00:38:26 +08:00
|
|
|
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -O -i
|
2012-06-05 01:40:04 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
|
|
|
USER anonymous
|
|
|
|
PASS ftp@example.com
|
|
|
|
PWD
|
|
|
|
CWD path
|
|
|
|
EPSV
|
|
|
|
TYPE I
|
2021-03-13 00:38:26 +08:00
|
|
|
SIZE file%TESTNUMBER
|
|
|
|
RETR file%TESTNUMBER
|
2012-06-05 01:40:04 +08:00
|
|
|
QUIT
|
|
|
|
</protocol>
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
<file1 name="log/file%TESTNUMBER">
|
2012-06-05 01:40:04 +08:00
|
|
|
fooo
|
|
|
|
mooo
|
|
|
|
</file1>
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
<file2 name="log/stdout%TESTNUMBER">
|
2012-06-06 02:19:27 +08:00
|
|
|
</file2>
|
2012-06-05 01:40:04 +08:00
|
|
|
|
|
|
|
</verify>
|
|
|
|
</testcase>
|