SFTP Download Files Matching a Pattern

Question: I am trying your component to check if I can integrate it well in an application I need to transfer and manage files using SFTP over SSH. I’ve examined the samples and there’s one thing I’d like to do and cannot find it. Is it possible to read remote folder content but limited only to those items matching a […]

SFTP RemoveFile – File not found

Question: When trying to delete a file using SFTP with this line: success = sftp.RemoveFile(“out/” & fileObj.Filename) we get the error listed below: ChilkatLog: RemoveFile: DllDate: Feb 8 2009 UnlockPrefix: Anything for 30-day trial Username: IUSR_ABCD Component: ActiveX SshVersion: SSH-2.0-1.36 sshlib: GlobalScape SftpVersion: 3 hcCurDate: Wed, 18 Feb 2009 14:23:01 +1100 hcExpire: 4/2009 filename: out/abc123.edi StatusCode: 2 ErrorMessage: File not […]

Selecting Smartcard Hash Algorithm

Question: I’m tried to produce a P7S file with the hash algorithm SHA-512, but the code always produces a signature with an SHA-1 hash for the data. If I’m selecting MD5 as hash algorithm it works fine. I’m using a Smartcard (D-Trust with Siemens Card OS 4.3) , ReinerSCT card reader and as Smartcard CSP Nexus Personal 4.10.1. Here’s my […]

SSH Tunneling (Port Forwarding)

SSH Port Forwarding (or tunneling) allows you to tunnel any TCP connection through an SSH server. For example, consider a database connection: A direct TCP connection: DbClient <—-TCP—-> DbServer An SSH tunneled connection: DbClient <—-TCP—-> SshClient <====SSH====> SshServer <—-TCP—-> DbServer In a tunneled connection, the application connects through an SshClient to an SSH server and starts a direct-tcpip channel, specifying […]

SSH direct-tcpip Port Forwarding (tunneling)

ASP: SSH Tunnel (Port Forwarding via direct-tcpip channel) SQL Server: SSH Tunnel (Port Forwarding via direct-tcpip channel) C#: SSH Tunnel (Port Forwarding via direct-tcpip channel) C++: SSH Tunnel (Port Forwarding via direct-tcpip channel) MFC: SSH Tunnel (Port Forwarding via direct-tcpip channel) C: SSH Tunnel (Port Forwarding via direct-tcpip channel) Delphi: SSH Tunnel (Port Forwarding via direct-tcpip channel) Visual FoxPro: SSH […]

SSH Tunneling a Database Connection

ASP: SSH Tunnel for Database Connection (such as ADO, ODBC, etc.) SQL Server: SSH Tunnel for Database Connection (such as ADO, ODBC, etc.) C#: SSH Tunnel for Database Connection (such as ADO, ODBC, etc.) C++: SSH Tunnel for Database Connection (such as ADO, ODBC, etc.) MFC: SSH Tunnel for Database Connection (such as ADO, ODBC, etc.) C: SSH Tunnel for […]

Zip “Save As” when Unzipping

Question: I have a need to unzip files from zip files created with Chilkat library, but I would like the library to allow me to specify the ‘SaveAs’ name of the file being unzipped.  I have not seen how to do this in the examples or the API documentation. Could you provide any insight into this for me?  I saw that I […]

v8.8.0 Release Notes

The major new features/fixes for the 8-February-2009 release are: SOCKS4, SOCKS5 Proxy Support for POP3, SMTP, IMAP, FTP, MHT, HTTP, and Socket. The following properties have been added to each component for SOCKS4/SOCKS5 support: SocksHostname, SocksPort, SocksUsername, SocksPassword, and SocksVersion (4 or 5). Setting these properties to non-empty values is all that is required to use SOCKS4 or SOCKS5 proxies. […]

Perl Date/Time Properties

Any date/time property in Chilkat’s Perl implementation is returned as a SYSTEMTIME object. Here is sample code that demonstrates getting the ValidTo and ValidFrom property from a digital certificate: $sysTime0 = new chilkat::SYSTEMTIME(); $cert->get_ValidFrom($sysTime0); $sysTime1 = new chilkat::SYSTEMTIME(); $cert->get_ValidTo($sysTime1); print “Valid from ” . $sysTime0->{wMonth} . “/” . $sysTime0->{wDay} . “/” . $sysTime0->{wYear} . ” to ” . $sysTime1->{wMonth} . […]

Asynchronous Sockets

This blog post is an attempt to explain the concepts of asynchronous socket programming using the Chilkat Socket class/component.   There are five types of socket operations that may occur asynchronously: Socket read. Socket write. Connect to remote hostname:port Accept connection from client DNS lookup A synchronous socket operation is easy to understand.  If you call ReceiveBytes, the method returns only […]