lh | 9ed821d | 2023-04-07 01:36:19 -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 | </servercmd> |
| 15 | </reply> |
| 16 | |
| 17 | # Client-side |
| 18 | <client> |
| 19 | <server> |
| 20 | ftp |
| 21 | </server> |
| 22 | <name> |
| 23 | FTP download, failed RETR with PORT |
| 24 | </name> |
| 25 | <command> |
| 26 | ftp://%HOSTIP:%FTPPORT/119 -P - |
| 27 | </command> |
| 28 | </client> |
| 29 | |
| 30 | # Verify data after the test has been "shot" |
| 31 | <verify> |
| 32 | <errorcode> |
| 33 | 19 |
| 34 | </errorcode> |
| 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 | TYPE I
|
| 45 | SIZE 119
|
| 46 | RETR 119
|
| 47 | QUIT
|
| 48 | </protocol> |
| 49 | </verify> |
| 50 | </testcase> |