test212 (1011B)
1 <testcase> 2 <info> 3 <keywords> 4 FTP 5 EPRT 6 </keywords> 7 </info> 8 9 # Server-side 10 <reply> 11 <data> 12 data blobb 13 </data> 14 <servercmd> 15 REPLY EPRT 500 no such command 16 </servercmd> 17 </reply> 18 19 # Client-side 20 <client> 21 <server> 22 ftp 23 </server> 24 # EPRT is only sent when IPv6 is enabled 25 <features> 26 IPv6 27 </features> 28 <name> 29 Get two FTP files with no remote EPRT support 30 </name> 31 <command> 32 ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER -P - 33 </command> 34 <stdout> 35 data blobb 36 data blobb 37 </stdout> 38 </client> 39 40 # Verify data after the test has been "shot" 41 <verify> 42 <strip> 43 QUIT 44 </strip> 45 # Strip the addresses and port number but leave the rest 46 <strippart> 47 s/^(EPRT \|1\|)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|/$1/ 48 s/^(PORT )\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}/$1/ 49 </strippart> 50 <protocol> 51 USER anonymous 52 PASS ftp@example.com 53 PWD 54 CWD a 55 CWD path 56 EPRT |1| 57 PORT 58 TYPE I 59 SIZE %TESTNUMBER 60 RETR %TESTNUMBER 61 PORT 62 SIZE %TESTNUMBER 63 RETR %TESTNUMBER 64 QUIT 65 </protocol> 66 </verify> 67 </testcase>