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: Howto view commands being sent to the ftp server?
Hamish.Ahern

From: xxxxxx, AL New Zealand
Posts: 7
Member Since: 07/06/01
posted July 6, 2001 11:06 AM

I can view the incoming recponses using the Ftp1_Progress event and the Reply string. But I'm unaware of how to retreive outgoing commands for my status text.
N/A posted July 6, 2001 11:28 AM

ok nevermind.. it seems the Trace method will provide me with enough information, thanks.

Excellent product by the way :)

The Web Tool HTTPS is the best thing ever!
Hamish.Ahern

From: xxxxxx, AL New Zealand
Posts: 7
Member Since: 07/06/01
posted July 6, 2001 11:48 AM

Actually the Trace method still doesn't help much, because I can't see the sent command before the actually reply is received, as traditional ftp clients can.

Your comments would be appreciated.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted July 6, 2001 12:40 PM


Hi,
One option to consider:
When a server Reply is received, the FtpCmd parameter of the Progress Event specifies the Command being replied to. So, when replies are received, you can add both the Command and its Reply to your status log.

Or:
Use the Trace prior to constructing your app to see exactly what commands are sent with each method call. When the methods are invoked in your program, add lines reflecting this to your status log. Of course, certain methods (for example, Login) send multiple commands, so there may be some extra work in synchronizing the commands with replies.
I hope this helps,
-ken

K M Drake
Dart Tech Support
Hamish.Ahern

From: xxxxxx, AL New Zealand
Posts: 7
Member Since: 07/06/01
posted July 7, 2001 1:19 AM

You missed the point.. that is exactly what I'm trying to overcome.

You can only get the sent command once a reply has been received.. and if you never get a reply you never know what was sent.

I want to see what is being sent first...

Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted July 7, 2001 11:04 AM


You will not be able to do exactly what you are trying to do. However, since you know what commands you are sending, I suggest that you log them as you call the methods.

Tony Priest
Dart Tech Support
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX