Mega Search
23.2 Million


Sign Up

Make a donation  
How do I disable TIdFTP from sending the FTP SYST command? [  
News Group: embarcadero.public.cppbuilder.internet.socket

Hi!

I am developing a test tool for swedish banks to test card payment devices. This tool uses FTP to interact with a remote configuration server using an interface defined by swedish banks called PPL (Program an Parameter Download)

Such a PPL server does not support the FTP SYST command. 

Problem is i use the TIdFTP component in my application. And I have yet to find out how to disable the TIdFTP Indy component from sending the FTP SYST command.

Is there a way to disable the TIdFTP component from sending the FTP SYST command?

I am currently using XE2 but am upgrading to XE7.

Regards, Kjell-Olov

Edited by: Kjell-Olov Högdahl on Oct 22, 2014 12:11 PM

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 22-Oct-2014, at 3:11 AM EST
From: =?Utf-8?Q?Kjell-Olov_H=C3=B6gdahl?=
 
Re: How do I disable TIdFTP from sending the FTP SYST comman  
News Group: embarcadero.public.cppbuilder.internet.socket
Kjell-Olov wrote:

> I am developing a test tool interfacing a server providing
> configuration files. This server interface is based on a very limited
> set of FTP commands and SYST is not one of them. Thus test
> operators are annoyed of having the SYST command showing up in
> the log although the server interface specifies it shall not be used.
> It does not cause and error, only confusion. We can live with it. In
> worst case I may have to intercept this command locally and fake
> a response, thus hiding it from the server.

When I connect to some WSFTP-based servers, for example, I see FEAT failing 
as unsupported.  It is just the nature of the beast (FTP).  FTP clients use 
SYST and FEAT to discover a server's capabilities so they can tailor subsequent 
commands accordingly, that's all.

--
Remy Lebeau (TeamB)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 29-Oct-2014, at 9:37 AM EST
From: Remy Lebeau (TeamB)
 
Re: How do I disable TIdFTP from sending the FTP SYST comman  
News Group: embarcadero.public.cppbuilder.internet.socket
> {quote:title=Remy Lebeau (TeamB) wrote:}{quote}
> Kjell-Olov wrote:
> 
> > Is there a way to disable the TIdFTP component from sending
> > the FTP SYST command?
> 
> No.  You would have to alter Indy's source code and recompile it.
>
OK, I see. Well, that is not an option. Tanks anyhow.
 
> Why is this a problem?  Most FTP client apps issue SYST, and TIdFTP accounts 
> for the possibility that SYST may fail on some servers.
>
I am developing a test tool interfacing a server providing configuration files. This server interface is based on a very limited set of FTP commands and SYST is not one of them. Thus test operators are annoyed of having the SYST command showing up in the log although the server interface specifies it shall not be used. It does not cause and error, only confusion. We can live with it. In worst case I may have to intercept this command locally and fake a response, thus hiding it from the server.
> --
> Remy Lebeau (TeamB)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 29-Oct-2014, at 7:44 AM EST
From: =?Utf-8?Q?Kjell-Olov_H=C3=B6gdahl?=
 
Re: How do I disable TIdFTP from sending the FTP SYST comman  
News Group: embarcadero.public.cppbuilder.internet.socket
Kjell-Olov wrote:

> Is there a way to disable the TIdFTP component from sending
> the FTP SYST command?

No.  You would have to alter Indy's source code and recompile it.

Why is this a problem?  Most FTP client apps issue SYST, and TIdFTP accounts 
for the possibility that SYST may fail on some servers.

--
Remy Lebeau (TeamB)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 22-Oct-2014, at 9:22 AM EST
From: Remy Lebeau (TeamB)