Question:
As suggested I tried: $ftp.GetFile("FUND.ZIP;1", "c:1FUND.1.ZIP") But I got the following log. Can I download a file Version when in CCC? ChilkatLog: GetFile: DllDate: Jun 23 2009 UnlockPrefix: ISISFSFTP Username: PeterH Component: .NET 2.0 localFilename: c:1FUND.1.ZIP ModeZ: 0 BinaryMode: 1 Warning: PBSZ error response PbszResponse: 536 Command invalid in CCC mode. Passive transfer mode PassiveHostAddress: 170.61.20.131 hostAddr: 170.61.20.131 DataConnect: hostname: 170.61.20.131 port: 49164 FilenameQP: FUND.ZIP;1 RETR failed Filename: FUND.ZIP;1 FtpResponse21: 550 ERROR NO BATCHES FOR TRANSMISSION Failed
The DLL Date (Jun 23, 2009) is quite old. Can you try with the latest version (9.4.0, DLL Date in Dec. 2012 I believe).
Thanks jpbro! Also, make sure to post LastErrorText information in <pre> ... </pre> tags for readability.
I can't post as a comment, so I post here:
GetFile: DllDate: Dec 18 2012 UnlockPrefix: ISISFSFTP Username: SALES2-PC:PeterH Architecture: Little Endian; 32-bit Language: .NET 4.5 VerboseLogging: 0 ProgressMonitoring: enabled: no heartbeatMs: 0 sendBufferSize: 65536 --ProgressMonitoring AutoGetSizeForProgress: 0 localFilename: c:1FUND.1.ZIP GetFileToOutput_1: getFileToOutput2_1: ModeZ: 0 BinaryMode: 1 Warning: PBSZ error response PbszResponse: 536 Command invalid in CCC mode. Passive transfer mode setupPassiveDataSocket2: PassiveHostAddress: 170.61.20.131 hostAddr: 170.61.20.131 DataConnect: hostname: 170.61.20.131 port: 58503 ConnectTimeoutMs_1: 60000 calling ConnectSocket2 IPV6 enabled connect with NO heartbeat. This is an IPV4 numeric address... AddrInfoList: AddrInfo: ai_flags: 4 ai_family: 2 ai_socktype: 1 ai_protocol: 0 ai_addrlen: 16 ai_canonname: (NULL) --AddrInfo --AddrInfoList Connect using IPV4. ipAddress1: 170.61.20.131 myIP_3: 192.168.1.166 myPort_3: 49754 connect successful (2) socketOptions: SO_SNDBUF: 261360 SO_RCVBUF: 8192 TCP_NODELAY: 8192 --socketOptions --DataConnect --setupPassiveDataSocket2 PassiveDataConnectionSetupTimeMs: Elapsed time: 31 millisec RetrFilename: [FUND.ZIP;1] Establishing secure data connection ssl_protocol_4: default ConvertToTls_5: establishChannel2_1: clientHandshake: clientHelloMajorMinorVersion: 3.1 buildClientHello: majorVersion: 3 minorVersion: 1 numRandomBytes: 32 sessionIdSize: 0 numCipherSuites: 10 numCompressionMethods: 1 --buildClientHello readIncomingTls_serverHello: Timeout waiting to read socket or accept connection timeoutMs: 60000 Timed out waiting for incoming SSL/TLS messages. timeoutMs: 60000 --readIncomingTls_serverHello Expected ServerHello but did not receive it. --clientHandshake Client handshake failed. (1) connectionClosed: 0 --establishChannel2_1 --ConvertToTls_5 Failed to convert receiving data socket to TLS --getFileToOutput2_1 --GetFileToOutput_1 MDTM is not supported by this FTP server. Cannot maintain the last-modified date/time automatically. TotalTimeMs: Elapsed time: 60060 millisec Failed. --GetFile --ChilkatLog