[DUG] XE7 and Indy FTPs

Ross Levis ross at stationplaylist.com
Mon Jan 26 19:19:38 NZDT 2015


You also need OpenSSL installed of course.

 

From: delphi-bounces at listserver.123.net.nz [mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Ross Levis
Sent: Monday, 26 January 2015 6:34 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] XE7 and Indy FTPs

 

I have it working.  This is what I use.

 

var

  FTP: TidFTP;

  SSLHandler: TIdSSLIOHandlerSocketOpenSSL;

begin

  FTP := TidFTP.Create;

  if Secure then

  begin

    SSLHandler := TIdSSLIOHandlerSocketOpenSSL.Create(FTP);

    SSLhandler.SSLOptions.Method := sslvSSLv23;

    FTP.IOHandler := SSLHandler;

    if FTPPort = 990 then FTP.UseTLS := utUseImplicitTLS

    else FTP.UseTLS := utUseExplicitTLS;

    FTP.DataPortProtection := ftpdpsPrivate;

  end;

  etc

 

From: delphi-bounces at listserver.123.net.nz [mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of John Bird
Sent: Monday, 26 January 2015 4:19 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] XE7 and Indy FTPs

 

Trying to switch some existing Indy FTP code to FTPs, it connects but fails the moment try to either list dir/Get or Put file with errors like:  “Policy requires SSL”.

The connection is set up according to the real sparse information on the web about Indy and FTPs, (for instance the Indy FTP demo has no FTPs options).

 

Have had FTPs working in the past using Clever Components, and noticed there is almost nothing when googling for FTPs and Indy – has anyone had success in implementing it or know if it works?

 

(otherwise likely to have to switch back to Clever Components)

 

 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20150126/0989f1d2/attachment-0001.html 


More information about the Delphi mailing list