Chilkat v11.6.0 / v11.6.1 Release Notes
See Release Notes for Versions 11.6.0 and 11.6.1
See Release Notes for Versions 11.6.0 and 11.6.1
✨ New Features HttpCurl A new Chilkat class has been added: HttpCurl The Chilkat.HttpCurl class executes curl commands and can automatically resolve dependent values needed by a request. Variables such as {{access_token}}, {{site_id}}, or {{drive_id}} may appear in URLs, headers, query parameters, or request bodies. If a variable is not yet known, HttpCurl builds […]
✨ New Features Js A new Chilkat class has been added: Js is a minimal, standards-compliant JavaScript engine designed to embed JavaScript inside applications with very small footprint and fast startup. It executes JavaScript code inside an application without requiring a browser or large runtime. See About the Chilkat.Js JavaScript Engine Ai Provider — […]
To append to an existing file using the Chilkat SFTP component / library, open the file for “writeOnly” and “openExisting”, then call any of the Write* methods (such as WriteFileText or WriteFileBytes), and then close the handle by calling CloseHandle. As always, if a method returns a failed status, check the contents of the LastErrorText […]
Here is an example for monitoring the progress of an SFTP file transfer: void sftp_OnPercentDone(object sender, Chilkat.PercentDoneEventArgs args) { progressBar1.Value = args.PercentDone; // To abort at any point, you may set args.Abort = true // args.Abort = true; } void sftp_OnAbortCheck(object sender, Chilkat.AbortCheckEventArgs args) { // See https://cknotes.com/?p=149 for more information about // using the […]
The PercentDone event is called when the percentage completion increases by one or more points. To use events in VB6, Dim the variable WithEvents. Then name the event callback using the variable name. (You should already understand how to use VB6 events in general prior to using the Chilkat objects. A good VB6 book is […]
Question: I have an issue with the SFTP component. When using the GetFileSize32 it returns 4294967295 for a file with length of 1324 bytes. L When using the GetFileSizeStr it returns Nothing for a file with length of 1324 bytes. L Answer: GetFileSize32 returns -1 when it fails, so I suspect that if your variable […]
If you pass a filename with no path to the SFTP OpenFile method, and the SFTP server is WS_FTP, you may get a “Folder not found” error. An SFTP server *should* open or create the file in the home directory of the logged-in account. This doesn’t seem to be the case with the WS_FTP server. […]
To use Chilkat SFTP (Secure File Transfer over SSH) you must use the unlock code for Chilkat SSH. It should contain the substring “SSH”. If your unlock code contains the string “FTP”, then you are using the FTP2 unlock code, which is incorrect. The SFTP component/API is part of the “Chilkat SSH” license: “SFTP” is […]
This C++ example demonstrates how to derive a class from the CkSFtpProgress base class to implement progress monitoring and abort for SFTP: // To monitor SFTP progress, derive a class from CkSFtpProgress and // provide implementations for AbortCheck and PercentDone: class MySFtpProgress : public CkSFtpProgress { public: MySFtpProgress() { } virtual ~MySFtpProgress() { } // […]
Question: I need to change directory before uploading (like a cd) since files must be copied into server sub-directories, and I’ve not found any sample or idea ( no ChangeDir or similar). Answer: SFTP is Secure File Transfer over SSH. It is not the FTP protocol. There is no similarity or relationship between FTP and […]
Given that your SFTP client might be communicating with servers on different operating systems, what is the proper syntax for an absolute filepath? On a Linux system, there is no “C” drive. Let’s do some experimentation…. For this experiment, we have two SSH servers: 1) A Tectia server running on a Windows platform. 2) An […]