[Gambas-user] FTP Secure doesn't work on Gambas?
Benoît Minisini
g4mba5 at gmail.com
Wed Oct 25 14:52:19 CEST 2017
Le 25/10/2017 à 10:33, Jorge Carrión a écrit :
> Hi,
> We have installed a SSL certificate in our internet server and we want
> all FTP transactions under SSL, So I changed the FTP server to allow
> only SSL/TLS connections.
>
> In Gambas I use this code:
>
> Dim ftptest As New FtpClient
>
> ftptest.URL = servidor.Text & IIf(port.text, ":" & port.text, "")
> ftptest.User = usuario.Text
> ftptest.Password = password.Text
> ftptest.SSL.VerifyHost = True
> ftptest.SSL.VerifyPeer = False
> ftptest.debug = True
> ftptest.Async = False
> ftptest.get(tmp)
>
> And I received this on console:
>
> * Rebuilt URL to: ftp://myserver.com:21/
> * Trying 999.999.999.999(the server's IP)...
> * Connected to myserver.com <http://myserver.com> (999.999.999.999) port
> 21 (#0)
> < 220 ProFTPD 1.3.5d Server (ProFTPD) [999.999.999.999]
>> USER myuser
> < 550 SSL/TLS required on the control channel
> * Access denied: 550
> * Closing connection 0
>
> Gamba's FTP client doesn't work or I've been missing something?
>
> Thanks in advance
>
> Best Regards
>
The "Gambas FTP client" is just curl.
Do you use ftps:// in your URL?
--
Benoît Minisini
More information about the User
mailing list