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