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: Startseite 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 […]

HTTP Session Logging

This example demonstrates how to use the new Chilkat HTTP SessionLogFilename property to log exact HTTP requests and responses to a file.  This can help in debugging… ASP: HTTP Session Logging SQL Server: HTTP Session Logging C#: HTTP Session Logging C++: HTTP Session Logging MFC: HTTP Session Logging C: HTTP Session Logging Delphi: HTTP Session Logging Visual FoxPro: HTTP Session […]

Socket “Not ready for writing” when trying to Connect?

Question: Can you tell from this log why it would say “socket is not ready for writing”? OpenSmtpConnection: DllDate: Jun 9 2009 UnlockPrefix: **** Username: Administrator Component: ActiveX Need new SMTP connection SMTP_Connect: Connecting to SMTP server mail.****.com:25 smtp_host: mail.****.com smtp_port: 25 domain: mail.****.com smtp_user: **** socket is not ready for writing Connect function failed. SocketError: WSAEWOULDBLOCK The socket would […]

HTTP Cache-Control

Question: Using the HTTP component I’m connecting and downloading an RSS feed via a Proxy server (fantastic!!). Trouble is – the proxy is caching yesterday’s feed and I need to force the proxy to refresh it’s contents (that’s the proxy on my network – not the Chilkat local cache). How can I tel the HTTP component to force the proxy […]

SFTP File not Found

Question: I’m trying to open a file on the SFTP server, but I get a “File not Found” error? Here is the LastErrorText: ChilkatLog: OpenFile: DllDate: Dec 2 2009 UnlockPrefix: Anything for 30-day trial Username: IUSR_ABC*** Component: ActiveX SshVersion: SSH-2.0-1.36 sshlib: GlobalScape SftpVersion: 3 hcCurDate: Tue, 08 Dec 2009 13:48:25 +0000 hcExpire: 1/2010 filename: test.txt access: writeOnly createDisposition: createTruncate v3Flags: […]

SFTP Permission Denied trying to open existing file.

Question: Why did I get a permission denied error from the server when trying to open an existing file on the SSH/SFTP server? Here’s the LastErrorText: ChilkatLog: DownloadFileByName: DllDate: Dec 2 2009 UnlockPrefix: *** Username: Administrator Component: ActiveX SshVersion: SSH-2.0-CoreFTP-0.1.2 SftpVersion: 3 PreserveDate: 0 fromFilePath: /test.dat.gz toFilePath: c:\abc\test.dat.gz OpenRemoteFile: filename: /test.dat.gz access: readOnly createDisposition: openExisting v3Flags: 0x1 Sent FXP_OPEN StatusResponse: […]

Zip DecryptPassword and EncryptPassword

Question: I’m confused about DecryptPassword and EncryptPassword. I want to encrypt the files I am emailing. I want the recipient to be required to enter a password when they try to open the zipped file. Do I EncryptPassword or DecryptPassword? Answer: Use DecryptPassword when using the Chilkat Zip component / library to open an encrypted zip. Use EncryptPassword when writing […]

Deleting email in GMail

(A tip from a Chilkat customer.) The only way to delete emails on Gmail is in three steps: 1. Copy the email(s) to the folder called [Gmail]/Trash 2. Select all of the emails in [Gmail]/Trash and set the Deleted flag 3. Execute ExpungeAndClose or Expunge command I found that this is the only way to truly delete emails from Gmail.

Aborting in C++

The technique for aborting any time-consuming Chilkat C++ method call follows this recipe: Declare your own class that derives from the appropriate Chilkat progress monitoring class.  For CkMailMan it is CkMailManProgress (as shown below).  For other Chilkat classes it is CkHttpProgress, CkFtpProgress, CkImapProgress, CkZipProgress, etc. Create an implementation for the AbortCheck method.  This will override the default implementation from the […]