Return to test592 CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data |
1.1 ! misho 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: NODATACONN421 ! 15: </keywords> ! 16: </info> ! 17: ! 18: # Server-side ! 19: <reply> ! 20: <data> ! 21: </data> ! 22: <servercmd> ! 23: NODATACONN421 ! 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: lib591 ! 35: </tool> ! 36: <name> ! 37: FTP multi PORT and 421 on upload ! 38: </name> ! 39: <command> ! 40: ftp://%HOSTIP:%FTPPORT/path/592 %FTPTIME2 log/upload592 ! 41: </command> ! 42: <file name="log/upload592"> ! 43: Moooooooooooo for 592 ! 44: upload this ! 45: </file> ! 46: </client> ! 47: ! 48: # Verify data after the test has been "shot" ! 49: <verify> ! 50: # Strip off parts of the PORT and EPRT commands that might differ ! 51: <strippart> ! 52: s/^PORT (.*)/PORT/ ! 53: s/^EPRT \|1\|(.*)/EPRT \|1\|/ ! 54: </strippart> ! 55: # a 421 response must prevent further commands from being sent ! 56: <protocol> ! 57: USER anonymous ! 58: PASS ftp@example.com ! 59: PWD ! 60: CWD path ! 61: EPRT |1| ! 62: PORT ! 63: TYPE I ! 64: STOR 592 ! 65: QUIT ! 66: </protocol> ! 67: # CURLE_FTP_ACCEPT_FAILED = 10 ! 68: <errorcode> ! 69: 10 ! 70: </errorcode> ! 71: <upload> ! 72: </upload> ! 73: </verify> ! 74: </testcase>