113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci#
313498266Sopenharmony_ci# This test is exactly like 525 but the server rejects the EPRT command.
413498266Sopenharmony_ci# Written up to make sure that there's nothing in the multi interface
513498266Sopenharmony_ci# active connection case that differs between PORT and EPRT use
613498266Sopenharmony_ci#
713498266Sopenharmony_ci<info>
813498266Sopenharmony_ci<keywords>
913498266Sopenharmony_ciFTP
1013498266Sopenharmony_ciPORT
1113498266Sopenharmony_ciSTOR
1213498266Sopenharmony_cimulti
1313498266Sopenharmony_ciEPRT refused
1413498266Sopenharmony_ci</keywords>
1513498266Sopenharmony_ci</info>
1613498266Sopenharmony_ci
1713498266Sopenharmony_ci# Server-side
1813498266Sopenharmony_ci<reply>
1913498266Sopenharmony_ci<data>
2013498266Sopenharmony_ci</data>
2113498266Sopenharmony_ci<servercmd>
2213498266Sopenharmony_ciREPLY EPRT 500 we don't like EPRT now
2313498266Sopenharmony_ci</servercmd>
2413498266Sopenharmony_ci</reply>
2513498266Sopenharmony_ci
2613498266Sopenharmony_ci# Client-side
2713498266Sopenharmony_ci<client>
2813498266Sopenharmony_ci<server>
2913498266Sopenharmony_ciftp
3013498266Sopenharmony_ci</server>
3113498266Sopenharmony_ci<tool>
3213498266Sopenharmony_cilib525
3313498266Sopenharmony_ci</tool>
3413498266Sopenharmony_ci<name>
3513498266Sopenharmony_ciFTP PORT upload using multi interface, EPRT doesn't work
3613498266Sopenharmony_ci</name>
3713498266Sopenharmony_ci<command>
3813498266Sopenharmony_ciftp://%HOSTIP:%FTPPORT/path/%TESTNUMBER %LOGDIR/upload%TESTNUMBER
3913498266Sopenharmony_ci</command>
4013498266Sopenharmony_ci<file name="%LOGDIR/upload%TESTNUMBER">
4113498266Sopenharmony_ciMoooooooooooo
4213498266Sopenharmony_ci upload this
4313498266Sopenharmony_ci</file>
4413498266Sopenharmony_ci</client>
4513498266Sopenharmony_ci
4613498266Sopenharmony_ci# Verify data after the test has been "shot"
4713498266Sopenharmony_ci<verify>
4813498266Sopenharmony_ci# Strip off parts of the PORT and EPRT commands that might differ
4913498266Sopenharmony_ci<strippart>
5013498266Sopenharmony_cis/^PORT (.*)/PORT/
5113498266Sopenharmony_cis/^EPRT \|1\|(.*)/EPRT \|1\|/
5213498266Sopenharmony_ci</strippart>
5313498266Sopenharmony_ci<protocol>
5413498266Sopenharmony_ciUSER anonymous
5513498266Sopenharmony_ciPASS ftp@example.com
5613498266Sopenharmony_ciPWD
5713498266Sopenharmony_ciCWD path
5813498266Sopenharmony_ciEPRT |1|
5913498266Sopenharmony_ciPORT
6013498266Sopenharmony_ciTYPE I
6113498266Sopenharmony_ciSTOR %TESTNUMBER
6213498266Sopenharmony_ciQUIT
6313498266Sopenharmony_ci</protocol>
6413498266Sopenharmony_ci<upload>
6513498266Sopenharmony_ciMoooooooooooo
6613498266Sopenharmony_ci upload this
6713498266Sopenharmony_ci</upload>
6813498266Sopenharmony_ci</verify>
6913498266Sopenharmony_ci</testcase>
70