113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciFTP
513498266Sopenharmony_ciEPRT
613498266Sopenharmony_ci</keywords>
713498266Sopenharmony_ci</info>
813498266Sopenharmony_ci
913498266Sopenharmony_ci# Server-side
1013498266Sopenharmony_ci<reply>
1113498266Sopenharmony_ci<data>
1213498266Sopenharmony_cidata blobb
1313498266Sopenharmony_ci</data>
1413498266Sopenharmony_ci<servercmd>
1513498266Sopenharmony_ciREPLY EPRT 500 no such command
1613498266Sopenharmony_ci</servercmd>
1713498266Sopenharmony_ci</reply>
1813498266Sopenharmony_ci
1913498266Sopenharmony_ci# Client-side
2013498266Sopenharmony_ci<client>
2113498266Sopenharmony_ci<server>
2213498266Sopenharmony_ciftp
2313498266Sopenharmony_ci</server>
2413498266Sopenharmony_ci# EPRT is only sent when IPv6 is enabled
2513498266Sopenharmony_ci<features>
2613498266Sopenharmony_ciipv6
2713498266Sopenharmony_ci</features>
2813498266Sopenharmony_ci<name>
2913498266Sopenharmony_ciGet two FTP files with no remote EPRT support
3013498266Sopenharmony_ci</name>
3113498266Sopenharmony_ci<command>
3213498266Sopenharmony_ciftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER -P -
3313498266Sopenharmony_ci</command>
3413498266Sopenharmony_ci<stdout>
3513498266Sopenharmony_cidata blobb
3613498266Sopenharmony_cidata blobb
3713498266Sopenharmony_ci</stdout>
3813498266Sopenharmony_ci</client>
3913498266Sopenharmony_ci
4013498266Sopenharmony_ci# Verify data after the test has been "shot"
4113498266Sopenharmony_ci<verify>
4213498266Sopenharmony_ci# Strip the addresses and port number but leave the rest
4313498266Sopenharmony_ci<strippart>
4413498266Sopenharmony_cis/^(EPRT \|1\|)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|/$1/
4513498266Sopenharmony_cis/^(PORT )\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}/$1/
4613498266Sopenharmony_ci</strippart>
4713498266Sopenharmony_ci<protocol>
4813498266Sopenharmony_ciUSER anonymous
4913498266Sopenharmony_ciPASS ftp@example.com
5013498266Sopenharmony_ciPWD
5113498266Sopenharmony_ciCWD a
5213498266Sopenharmony_ciCWD path
5313498266Sopenharmony_ciEPRT |1|
5413498266Sopenharmony_ciPORT 
5513498266Sopenharmony_ciTYPE I
5613498266Sopenharmony_ciSIZE %TESTNUMBER
5713498266Sopenharmony_ciRETR %TESTNUMBER
5813498266Sopenharmony_ciPORT 
5913498266Sopenharmony_ciSIZE %TESTNUMBER
6013498266Sopenharmony_ciRETR %TESTNUMBER
6113498266Sopenharmony_ciQUIT
6213498266Sopenharmony_ci</protocol>
6313498266Sopenharmony_ci</verify>
6413498266Sopenharmony_ci</testcase>
65