1<testcase> 2<info> 3<keywords> 4FTP 5RETR 6-J 7</keywords> 8</info> 9 10# Server-side 11<reply> 12<data nocheck="yes"> 13fooo 14mooo 15</data> 16</reply> 17 18# Client-side 19<client> 20<server> 21ftp 22</server> 23<name> 24FTP DL, file without C-D inside, using -o fname -J -D file 25</name> 26<command option="no-output,no-include"> 27ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -J -D %LOGDIR/heads%TESTNUMBER 28</command> 29</client> 30 31# Verify data after the test has been "shot" 32<verify> 33<strip> 34QUIT 35</strip> 36<protocol> 37USER anonymous 38PASS ftp@example.com 39PWD 40CWD path 41EPSV 42TYPE I 43SIZE file%TESTNUMBER 44RETR file%TESTNUMBER 45QUIT 46</protocol> 47 48<file1 name="%LOGDIR/download%TESTNUMBER"> 49fooo 50mooo 51</file1> 52 53<file2 name="%LOGDIR/heads%TESTNUMBER"> 54220- _ _ ____ _ 55220- ___| | | | _ \| | 56220- / __| | | | |_) | | 57220- | (__| |_| | _ {| |___ 58220 \___|\___/|_| \_\_____| 59331 We are happy you popped in! 60230 Welcome you silly person 61257 "/" is current directory 62250 CWD command successful. 63229 Entering Passive Mode (stripped) 64200 I modify TYPE as you wanted 65213 10 66150 Binary data connection for %TESTNUMBER () (10 bytes). 67226 File transfer complete 68</file2> 69<stripfile2> 70s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ 71</stripfile2> 72 73<file3 name="%LOGDIR/stdout%TESTNUMBER"> 74</file3> 75 76<notexists> 77%LOGDIR/file%TESTNUMBER 78</notexists> 79</verify> 80</testcase> 81