xref: /third_party/curl/tests/data/test116 (revision 13498266)
113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciFTP
513498266Sopenharmony_ciEPRT
613498266Sopenharmony_ciPORT
713498266Sopenharmony_ciFAILURE
813498266Sopenharmony_ciEPRT refused
913498266Sopenharmony_ci</keywords>
1013498266Sopenharmony_ci</info>
1113498266Sopenharmony_ci# Server-side
1213498266Sopenharmony_ci<reply>
1313498266Sopenharmony_ci<servercmd>
1413498266Sopenharmony_ciREPLY EPRT 500 we don't like EPRT now
1513498266Sopenharmony_ciREPLY PORT 314 bluah you f00l!
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_ciFTP download, failed PORT
3013498266Sopenharmony_ci</name>
3113498266Sopenharmony_ci<command>
3213498266Sopenharmony_ciftp://%HOSTIP:%FTPPORT/%TESTNUMBER -P 1.2.3.4
3313498266Sopenharmony_ci</command>
3413498266Sopenharmony_ci</client>
3513498266Sopenharmony_ci
3613498266Sopenharmony_ci# Verify data after the test has been "shot"
3713498266Sopenharmony_ci<verify>
3813498266Sopenharmony_ci<errorcode>
3913498266Sopenharmony_ci30
4013498266Sopenharmony_ci</errorcode>
4113498266Sopenharmony_ci# Strip the port number but leave the rest
4213498266Sopenharmony_ci<strippart>
4313498266Sopenharmony_cis/^(PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},)\d{1,3},\d{1,3}/$1/
4413498266Sopenharmony_cis/^(EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|)\d{1,5}\|/$1/
4513498266Sopenharmony_ci</strippart>
4613498266Sopenharmony_ci<protocol>
4713498266Sopenharmony_ciUSER anonymous
4813498266Sopenharmony_ciPASS ftp@example.com
4913498266Sopenharmony_ciPWD
5013498266Sopenharmony_ciEPRT |1|1.2.3.4|
5113498266Sopenharmony_ciPORT 1,2,3,4,
5213498266Sopenharmony_ciQUIT
5313498266Sopenharmony_ci</protocol>
5413498266Sopenharmony_ci</verify>
5513498266Sopenharmony_ci</testcase>
56