1 <testcase> 2 # 3 # This test is exactly like 525 but the server rejects the EPRT command. 4 # Written up to make sure that there's nothing in the multi interface 5 # active connection case that differs between PORT and EPRT use 6 # 7 <info> 8 <keywords> 9 FTP 10 PORT 11 STOR 12 multi 13 EPRT refused 14 </keywords> 15 </info> 16 17 # Server-side 18 <reply> 19 <data> 20 </data> 21 <servercmd> 22 REPLY EPRT 500 we don't like EPRT now 23 </servercmd> 24 </reply> 25 26 # Client-side 27 <client> 28 <server> 29 ftp 30 </server> 31 <tool> 32 lib525 33 </tool> 34 <name> 35 FTP PORT upload using multi interface, EPRT doesn't work 36 </name> 37 <command> 38 ftp://%HOSTIP:%FTPPORT/path/588 log/upload588 39 </command> 40 <file name="log/upload588"> 41 Moooooooooooo 42 upload this 43 </file> 44 </client> 45 46 # Verify data after the test has been "shot" 47 <verify> 48 # Strip off parts of the PORT and EPRT commands that might differ 49 <strippart> 50 s/^PORT (.*)/PORT/ 51 s/^EPRT \|1\|(.*)/EPRT \|1\|/ 52 </strippart> 53 <protocol> 54 USER anonymous 55 PASS ftp (a] example.com 56 PWD 57 CWD path 58 EPRT |1| 59 PORT 60 TYPE I 61 STOR 588 62 QUIT 63 </protocol> 64 <upload> 65 Moooooooooooo 66 upload this 67 </upload> 68 </verify> 69 </testcase> 70