test591 (1147B)
1 <testcase> 2 # 3 # For this test the server rejects the EPRT command, 4 # code in lib%TESTNUMBER makes use of curl_multi_timeout() 5 # and server does not establish data connection. 6 # 7 <info> 8 <keywords> 9 FTP 10 PORT 11 STOR 12 multi 13 EPRT refused 14 NODATACONN425 15 </keywords> 16 </info> 17 18 # Server-side 19 <reply> 20 <data> 21 </data> 22 <servercmd> 23 NODATACONN425 24 REPLY EPRT 500 we don't like EPRT now 25 </servercmd> 26 </reply> 27 28 # Client-side 29 <client> 30 <server> 31 ftp 32 </server> 33 <tool> 34 lib%TESTNUMBER 35 </tool> 36 <name> 37 FTP multi PORT and 425 on upload 38 </name> 39 <command> 40 ftp://%HOSTIP:%FTPPORT/path/%TESTNUMBER %FTPTIME2 %LOGDIR/upload%TESTNUMBER 41 </command> 42 <file name="%LOGDIR/upload%TESTNUMBER"> 43 Moooooooooooo for %TESTNUMBER 44 upload this 45 </file> 46 </client> 47 48 # Verify data after the test has been "shot" 49 <verify> 50 <strip> 51 QUIT 52 </strip> 53 # Strip off parts of the PORT and EPRT commands that might differ 54 <strippart> 55 s/^PORT (.*)/PORT/ 56 s/^EPRT \|1\|(.*)/EPRT \|1\|/ 57 </strippart> 58 <protocol> 59 USER anonymous 60 PASS ftp@example.com 61 PWD 62 CWD path 63 EPRT |1| 64 PORT 65 TYPE I 66 STOR %TESTNUMBER 67 QUIT 68 </protocol> 69 # CURLE_FTP_ACCEPT_FAILED = 10 70 <errorcode> 71 10 72 </errorcode> 73 <upload> 74 </upload> 75 </verify> 76 </testcase>