| xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> | 
|  | 2 | <info> | 
|  | 3 | <keywords> | 
|  | 4 | FTP | 
|  | 5 | PORT | 
|  | 6 | RETR | 
|  | 7 | FAILURE | 
|  | 8 | </keywords> | 
|  | 9 | </info> | 
|  | 10 | # Server-side | 
|  | 11 | <reply> | 
|  | 12 | <servercmd> | 
|  | 13 | REPLY RETR 314 bluah you f00l! | 
|  | 14 | REPLY SIZE 500 command not understood | 
|  | 15 | </servercmd> | 
|  | 16 | </reply> | 
|  | 17 |  | 
|  | 18 | # Client-side | 
|  | 19 | <client> | 
|  | 20 | <server> | 
|  | 21 | ftp | 
|  | 22 | </server> | 
|  | 23 | <name> | 
|  | 24 | FTP download, failed RETR with PORT | 
|  | 25 | </name> | 
|  | 26 | <command> | 
|  | 27 | ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -P - | 
|  | 28 | </command> | 
|  | 29 | </client> | 
|  | 30 |  | 
|  | 31 | # Verify data after the test has been "shot" | 
|  | 32 | <verify> | 
|  | 33 | <errorcode> | 
|  | 34 | 19 | 
|  | 35 | </errorcode> | 
|  | 36 | # Strip all valid kinds of PORT and EPRT that curl can send | 
|  | 37 | <strip> | 
|  | 38 | ^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3} | 
|  | 39 | ^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\| | 
|  | 40 | </strip> | 
|  | 41 | <protocol> | 
|  | 42 | USER anonymous | 
|  | 43 | PASS ftp@example.com | 
|  | 44 | PWD | 
|  | 45 | TYPE I | 
|  | 46 | SIZE %TESTNUMBER | 
|  | 47 | RETR %TESTNUMBER | 
|  | 48 | QUIT | 
|  | 49 | </protocol> | 
|  | 50 | </verify> | 
|  | 51 | </testcase> |