test101 (1297B)
1 <testcase> 2 <info> 3 <keywords> 4 FTP 5 PORT 6 LIST 7 </keywords> 8 </info> 9 # Server-side 10 <reply> 11 <data mode="text"> 12 total 20 13 drwxr-xr-x 8 98 98 512 Oct 22 13:06 . 14 drwxr-xr-x 8 98 98 512 Oct 22 13:06 .. 15 drwxr-xr-x 2 98 98 512 May 2 1996 .NeXT 16 -r--r--r-- 1 0 1 35 Jul 16 1996 README 17 lrwxrwxrwx 1 0 1 7 Dec 9 1999 bin -> usr/bin 18 dr-xr-xr-x 2 0 1 512 Oct 1 1997 dev 19 drwxrwxrwx 2 98 98 512 May 29 16:04 download.html 20 dr-xr-xr-x 2 0 1 512 Nov 30 1995 etc 21 drwxrwxrwx 2 98 1 512 Oct 30 14:33 pub 22 dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr 23 </data> 24 </reply> 25 26 # Client-side 27 <client> 28 <server> 29 ftp 30 </server> 31 <name> 32 FTP dir list, PORT with specified IP 33 </name> 34 <command> 35 ftp://%HOSTIP:%FTPPORT/ -P %CLIENTIP 36 </command> 37 </client> 38 39 # Verify data after the test has been "shot" 40 <verify> 41 <strip> 42 QUIT 43 </strip> 44 # Strip all valid kinds of PORT and EPRT that curl can send 45 <strip> 46 ^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3} 47 ^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\| 48 </strip> 49 <protocol> 50 USER anonymous 51 PASS ftp@example.com 52 PWD 53 PORT 127,0,0,1,243,212 54 TYPE A 55 LIST 56 QUIT 57 </protocol> 58 </verify> 59 </testcase>