Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: FTP 'Reply' string is corrupted after an FTP User Command
roofrack
gary.roussak@tyrrellsystems.com

From: Leigh, United Kingdom
Posts: 23
Member Since: 06/08/06
posted November 2, 2006 10:47 AM

Hi,

I have an FTP client using Dart Ftp Tool and a server using Dart FtpServer. My client is non-blocking and relies on the use of the Progress event as a state engine.

Suppose my client issues three commands to the server:

Command #1: My own user command (lets call it "ABCD") tells the server to prepare a file ("ABCD.ZZZ") for later collection. If the Progress event gets a good reply from the server, then...

Command #2: The client now sends a 'change working directory'. If the Progress event gets a good reply from the server, then...

Command #3: The client retrieves ABCD.ZZZ

There is no reason, presumably, why the methods for #2 and #3 cannot be issued directly from within the Progress event (that's why it exists in a non-blocking environment, surely ?).

However, the problem I'm finding is that the 'Reply' string sent to the Progress event isn't being cleared down after issuing my user command in step #1.

So, for instance, after sending FTP1.Command("ABCD", strResult), the client gets a reply of:

"253 Your ABCD command was successful"

(which is programmed by me in the server using Response.Status and Response.StatusText)

The Progress event now sends FTP1.Directory("ABCDFolder"). I would expect to receive:

"250 CWD command successful"

but what I receive is as follows:

"253<CR><LF>250 CWD command successful" (or something similar!).

Clearing down the Response properties before I set them doesn't help at all.

Am I doing something wrong here, or is the Response object misbehaving itself in the case of a user command ?

Thanks
Amit

From: Rome, NY USA
Posts: 315
Member Since: 03/15/06
posted November 2, 2006 3:59 PM

Hello,

Not sure whether the issue is with the Server’s responses or the Client’s handling of the responses. I would suggest you to please send us the Trace log so that we can narrow down the issue further. You may create a Trace log using the Trace method. The syntax for this method is as follows:

Object.Trace [ Result ] [ , Send ] [ , Receive ] [ , SendPrompt ] [ , ReceivePrompt ]
Any further information to isolate the issue would be highly appreciated.

Regards,
Amit
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX