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