1<testcase> 2<info> 3<keywords> 4FTP 5</keywords> 6</info> 7 8# Server-side 9<reply> 10</reply> 11 12# Client-side 13<client> 14<server> 15ftp 16</server> 17<name> 18FTP with multiple uploads 19</name> 20<command> 21-T %LOGDIR/upload%TESTNUMBER ftp://%HOSTIP:%FTPPORT/dir1/%TESTNUMBER -T %LOGDIR/upload%TESTNUMBER ftp://%HOSTIP:%FTPPORT/dir2/%TESTNUMBER 22</command> 23<file name="%LOGDIR/upload%TESTNUMBER"> 24send away this contents 25</file> 26</client> 27 28# Verify data after the test has been "shot" 29<verify> 30<strip> 31QUIT 32</strip> 33# Strip all valid kinds of PORT and EPRT that curl can send 34<strip> 35^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3} 36^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\| 37</strip> 38<protocol> 39USER anonymous 40PASS ftp@example.com 41PWD 42CWD dir1 43EPSV 44TYPE I 45STOR %TESTNUMBER 46CWD / 47CWD dir2 48EPSV 49STOR %TESTNUMBER 50QUIT 51</protocol> 52<file name="%LOGDIR/upload%TESTNUMBER"> 53send away this contents 54</file> 55</verify> 56</testcase> 57