Go
Go
FTP FEAT Command
See more FTP Examples
Sends a FEAT command to the FTP server and returns the response. Here is a typical response:211-Features: MDTM REST STREAM SIZE MLST type*;size*;modify*; MLSD AUTH SSL AUTH TLS UTF8 CLNT MFMT 211 End
Chilkat Go Downloads
success := false
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
ftp := chilkat.NewFtp2()
ftp.SetHostname("ftp.example.com")
ftp.SetUsername("test")
ftp.SetPassword("test")
// Connect and login to the FTP server.
success = ftp.Connect()
if success != true {
fmt.Println(ftp.LastErrorText())
ftp.DisposeFtp2()
return
}
var ftpResponse *string = new(string)
ftpResponse = ftp.Feat()
fmt.Println(*ftpResponse)
success = ftp.Disconnect()
ftp.DisposeFtp2()