curl/tests/data/test103
raw| 1 | <info> |
| 2 | <keywords> |
| 3 | FTP |
| 4 | PORT |
| 5 | RETR |
| 6 | </keywords> |
| 7 | </info> |
| 8 | # Server-side |
| 9 | <reply> |
| 10 | <data> |
| 11 | data |
| 12 | to |
| 13 | see |
| 14 | that FTP |
| 15 | works |
| 16 | so does it? |
| 17 | </data> |
| 18 | </reply> |
| 19 | |
| 20 | # Client-side |
| 21 | <client> |
| 22 | <server> |
| 23 | ftp |
| 24 | </server> |
| 25 | <name> |
| 26 | FTP RETR PORT with CWD |
| 27 | </name> |
| 28 | <command> |
| 29 | ftp://%HOSTIP:%FTPPORT/a/path/103 -P - |
| 30 | </command> |
| 31 | </client> |
| 32 | |
| 33 | # Verify data after the test has been "shot" |
| 34 | <verify> |
| 35 | <strippart> |
| 36 | s/^LPRT.*[\r\n]*// |
| 37 | s/^EPRT.*[\r\n]*// |
| 38 | s/^(PORT 127,0,0,1,)([0-9,]+)/$1/ |
| 39 | </strippart> |
| 40 | <protocol> |
| 41 | USER anonymous |
| 42 | PASS [email protected] |
| 43 | PWD |
| 44 | CWD a |
| 45 | CWD path |
| 46 | PORT 127,0,0,1, |
| 47 | TYPE I |
| 48 | SIZE 103 |
| 49 | RETR 103 |
| 50 | QUIT |
| 51 | </protocol> |
| 52 | </verify> |