Email Attachment Not Found?

The following is a list of the most common mistakes made when expecting to find an attachment in an email object: You downloaded headers-only.  If you call a method to download only the headers of an email, then the attachments will not be included.  With IMAP you will still get information about the attachments, but with POP3 you will not […]

Modify Email on IMAP Server?

Question: Is it possible to change the Subject of an IMAP email? Answer: The IMAP protocol is such that emails (on the server) cannot be changed. This is not a Chilkat limitation, but it is the way IMAP works. In other words, if you want to change an email, you can download it, make changes, then “append” the new email […]

SSH / SFTP – Too much time between connect and authentication

The Solution: Issue solved.   The problem was, that we stepped through the code and because of that too much time elapsed between connect and authentication.  As we ran the program without breakpoints it worked. The Problem: The AuthenticatePw method failed and the LastErrorText contained this information: ChilkatLog: AuthenticatePw: DllDate: Jan 31 2010 UnlockPrefix: *** Username: *** Component: .NET 2.0 SshVersion: […]

Getting the Root CA Certificate SHA1 Thumbprint

Question: (In VB6) One thing we would like to do is to read out the SHA1 fingerprint of the root ca. For example, the programm should read the user certificate. The user certificate has a certification path. Is it possible to read out the fingerprint of the top-level root certificate? Answer: Here is a sample program. The user certificate is […]

REGSVR32 0x80070005 Error on x64 Windows 7

The download for the Chilkat x64 ActiveX components includes a register.bat batch file for registering each of the Chilkat ActiveX DLLs.  If some or all of these fail with an error code of 0x80070005, it is because of a permissions problem.  Do the following to successfully register the ActiveX DLL’s on the system: Copy the DLL’s to c:\Windows\System32 Right-click on […]

SSL/TLS Error – SEC_E_INTERNAL_ERROR

Problem: An SSL/TLS connection failed and the LastErrorText contains “SEC_E_INTERNAL_ERROR”, such as in the error text below: (See cause solution below) ChilkatLog: Connect: DllDate: Dec 4 2009 UnlockPrefix: **** Username: **** Component: .NET 2.0 objectId: 1 hostname: *.*.*.* port: 443 ssl: 1 maxWaitMs: 20000 windowsAccount: **** ClientCertDN: **** protocol: default An existing connection was forcibly closed by the remote host. […]

Very simple C# SSH Shell Console Terminal

Here’s an example that demonstrates a rough start to creating a C# console SSH shell terminal (where the user can type commands and output from the remote command echos to the console: using System; using System.Collections.Generic; using System.Text; using System.IO; namespace SshTerminalConsole { class Program { static void Main(string[] args) { Chilkat.Ssh ssh = new Chilkat.Ssh(); ssh.UnlockComponent(“Test”); // Hostname may […]

Background Enabled Methods – Using Chilkat Asynchronously

Notice: The functionality described here is deprecated and replaced by a newer model for asynchronous method calls. The newer model was introduced in Chilkat v9.5.0.52, and is identified by methods having names ending in “Async” which return a task object. The Chilkat HTTP component has a set of methods and properties that allow already-existing methods to be called asynchronously. For […]

Asynchronous HTTP

Notice: The functionality described here is deprecated and replaced by a newer model for asynchronous method calls. The newer model was introduced in Chilkat v9.5.0.52, and is identified by methods having names ending in “Async” which return a task object. The following example demonstrates the older, deprecated asynchronous HTTP functionality that allows for any HTTP method to be run asynchronously […]

Debugging an HTTP Form Login

This is a summary of the steps I’m taking to debug the following problem: I am trying to login using Chilkat HTTP to this site: http://www.mister-wong.com and after the login, there is a 302 redirect. After the redirect, the session is lost. I believe it could be another cookie related issue. 1. Make sure I’m using the very latest version […]