113498266Sopenharmony_ci<testcase> 213498266Sopenharmony_ci<info> 313498266Sopenharmony_ci<keywords> 413498266Sopenharmony_ciFTP 513498266Sopenharmony_ciPORT 613498266Sopenharmony_ciLIST 713498266Sopenharmony_ci</keywords> 813498266Sopenharmony_ci</info> 913498266Sopenharmony_ci# Server-side 1013498266Sopenharmony_ci<reply> 1113498266Sopenharmony_ci# When doing LIST, we get the default list output hard-coded in the test 1213498266Sopenharmony_ci# FTP server 1313498266Sopenharmony_ci<datacheck mode="text"> 1413498266Sopenharmony_citotal 20 1513498266Sopenharmony_cidrwxr-xr-x 8 98 98 512 Oct 22 13:06 . 1613498266Sopenharmony_cidrwxr-xr-x 8 98 98 512 Oct 22 13:06 .. 1713498266Sopenharmony_cidrwxr-xr-x 2 98 98 512 May 2 1996 .NeXT 1813498266Sopenharmony_ci-r--r--r-- 1 0 1 35 Jul 16 1996 README 1913498266Sopenharmony_cilrwxrwxrwx 1 0 1 7 Dec 9 1999 bin -> usr/bin 2013498266Sopenharmony_cidr-xr-xr-x 2 0 1 512 Oct 1 1997 dev 2113498266Sopenharmony_cidrwxrwxrwx 2 98 98 512 May 29 16:04 download.html 2213498266Sopenharmony_cidr-xr-xr-x 2 0 1 512 Nov 30 1995 etc 2313498266Sopenharmony_cidrwxrwxrwx 2 98 1 512 Oct 30 14:33 pub 2413498266Sopenharmony_cidr-xr-xr-x 5 0 1 512 Oct 1 1997 usr 2513498266Sopenharmony_ci</datacheck> 2613498266Sopenharmony_ci</reply> 2713498266Sopenharmony_ci 2813498266Sopenharmony_ci# Client-side 2913498266Sopenharmony_ci<client> 3013498266Sopenharmony_ci<server> 3113498266Sopenharmony_ciftp 3213498266Sopenharmony_ci</server> 3313498266Sopenharmony_ci<name> 3413498266Sopenharmony_ciFTP dir list, PORT with specified IP 3513498266Sopenharmony_ci</name> 3613498266Sopenharmony_ci<command> 3713498266Sopenharmony_ciftp://%HOSTIP:%FTPPORT/ -P %CLIENTIP 3813498266Sopenharmony_ci</command> 3913498266Sopenharmony_ci</client> 4013498266Sopenharmony_ci 4113498266Sopenharmony_ci# Verify data after the test has been "shot" 4213498266Sopenharmony_ci<verify> 4313498266Sopenharmony_ci# Strip all valid kinds of PORT and EPRT that curl can send 4413498266Sopenharmony_ci<strip> 4513498266Sopenharmony_ci^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3} 4613498266Sopenharmony_ci^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\| 4713498266Sopenharmony_ci</strip> 4813498266Sopenharmony_ci<protocol> 4913498266Sopenharmony_ciUSER anonymous 5013498266Sopenharmony_ciPASS ftp@example.com 5113498266Sopenharmony_ciPWD 5213498266Sopenharmony_ciPORT 127,0,0,1,243,212 5313498266Sopenharmony_ciTYPE A 5413498266Sopenharmony_ciLIST 5513498266Sopenharmony_ciQUIT 5613498266Sopenharmony_ci</protocol> 5713498266Sopenharmony_ci</verify> 5813498266Sopenharmony_ci</testcase> 59