IMAP Login: BAD Command received in Invalid state.

This error can happen if you connect to an IMAP server without SSL/TLS (i.e. at port 143) but the server does not allow unsecure sessions.  Oddly enough, the Microsoft Exchange IMAP4 server will accept the connection, but will fail any login attempt with this error.  Here is a sample SessionLog: Connecting to IMAP server at xxxx.com:143 > —-IMAP RESPONSE—- > […]

Error 0x8002801D when Instantiating Chilkat HTTP ActiveX

This error indicates that there is a problem with the registry information for the ActiveX DLL. The registry entry may be missing or contain incorrect information, or the user may not have permission to read the registry entry. In ASP, the error message may look like this:  Server object error ‘ASP 0177 : 8002801d’ In applications, you may see an […]

Using Chilkat IMAP with Yahoo IMAP (imap.mail.yahoo.com)

From Wikipedia: It is possible to get direct IMAP  access without signing up for paid access nor using software like YPOPs! or FreePOPs. Yahoo! operates IMAP and secure IMAP servers (imap.mail.yahoo.com in particular), which are globally accessible. However they require a specific, non-standard IMAP command to be sent before login is done, namely: “ID (“GUID” “1”)”. Using Chilkat IMAP, you […]

SFTP OpenFile fails with “Folder not found” from SFTP Server

If the SSH/SFTP server responds with a “Folder not found” error in response to calling OpenFile with a remote filepath is just a filename with no path part, then try prepending “./” to the filepath.  For example: success = sftp.OpenFile(“test.txt”, “writeOnly”, “createTruncate”); If this fails with a “Folder not found”, then modify your code to this: success = sftp.OpenFile(“./test.txt”, “writeOnly”, […]

Chilkat 9.1.0 Release Notes

HTTP:  Fixed problem with setting Content-Type header in HTTP POST to text/namevalue (which is required for POSTs to payflowpro.paypal.com).  The POST body was URL encoded when it shouldn’t have been.  When sending namevalue POSTs to payflowpro, be sure to specify the content-type in the HTTP request object:  requestObject.AddHeader(“content-type”,”text/namevalue”) SSH / SFTP: For AuthenticatePw, if the server’s authentication is keyboard-interactive and […]

SSH SendReqExec — Interactive Commands such as “more”

Commands that assume an interactive user at a shell prompt should not be passed to SendRequestExec.  For example, the “more” command assumes there is a shell and that the user will press RETURN when another screenful of text is wanted.  It would be more appropriate to use the Unix/Linux “cat” command w/ SendRequestExec. To run interactive commands, one should instead […]

SSH SendReqExec — Commands with No Output

When a command is passed to SendReqExec that produces no output, such as “echo 1 > test.txt”, then do not try to read the channel (such as by calling ChannelReadAndPoll) because no data will be forthcoming and the channel read will timeout (as expected). The correct sequence of method calls would be to: Call SendReqExec to execute the command on […]

Register an ActiveX DLL from within FoxPro

A Chilkat customer provided this bit of Foxpro code: DECLARE LONG DllRegisterServer IN <yourfile.dll> IF DllRegisterServer() = 0 * OK ELSE * Not OK ENDIF It provides an alternative way to distribute an ActiveX DLL with a FoxPro application. Typically, one would create an installer, such as a .msi or something from an install software package (InstallShield perhaps), such that […]

SSH/SFTP Disrupted by Untangle Security Appliance

(With permission from a Chilkat customer, for the benefit of others..) Problem: We did some extensive testing and found that our client sees this on their end what the connection fails: SERVER:   13.07.2010  15:21:43  (57220) session ended on error, Buffer missing (error 132). Do you know what that could possibly mean in relation to Chilkat’s SFTP? Solution: “The issue ended […]

FTP Progress Monitoring

This post points to the various examples and blog posts scattered among the chilkatsoft.com, example-code.com, and cknotes.com involving progress monitoring of  FTP uploads and downloads using the Chilkat FTP2 ActiveX, .NET component, and C++ libs. Important for Monitoring Upload Progress: The SendBufferSize property is set to a large value (512K) to maximize performance.  Unfortunately, this usually ruins the frequency of […]