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

Tomcat UnsatisfiedLinkError

If Java (running under Tomcat or any other environment) cannot load the Chilkat library, make sure the chilkat.dll and chilkat.jar are located in a directory listed in the java.library.path. You can view the java.library.path in your environment by inserting this line of code: System.out.println(System.getProperty(“java.library.path”))

Ruby “require” statement

Question: I am evaluating your product for ruby on windows xp and followed the quick start and unzipped the files into a new directory on my C drive. In my script where it calls for chilkat with the “require chilkat” statement, I get an error that says that gem can’t be found on the system. I tried doing a gem […]