1<testcase> 2<info> 3<keywords> 4FTP 5RETR 6</keywords> 7</info> 8 9# Server-side 10<reply> 11<data nocheck="yes"> 12fooo 13mooo 14</data> 15</reply> 16 17# Client-side 18<client> 19# this relies on the debug feature to allow us to set directory to store the 20# -O output in, using the CURL_TESTDIR variable 21<features> 22Debug 23</features> 24<server> 25ftp 26</server> 27<name> 28FTP download, file without Content-Disposition inside, using -O 29</name> 30<setenv> 31CURL_TESTDIR=%LOGDIR 32</setenv> 33<command option="no-output,no-include"> 34ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -O 35</command> 36</client> 37 38# Verify data after the test has been "shot" 39<verify> 40<strip> 41QUIT 42</strip> 43<protocol> 44USER anonymous 45PASS ftp@example.com 46PWD 47CWD path 48EPSV 49TYPE I 50SIZE file%TESTNUMBER 51RETR file%TESTNUMBER 52QUIT 53</protocol> 54 55<file1 name="%LOGDIR/file%TESTNUMBER"> 56fooo 57mooo 58</file1> 59 60<file2 name="%LOGDIR/stdout%TESTNUMBER"> 61</file2> 62 63</verify> 64</testcase> 65