(Visual FoxPro) FTP FEAT Command
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
LOCAL loFtp
LOCAL lnSuccess
LOCAL lcFtpResponse
* This example requires the Chilkat API to have been previously unlocked.
* See Global Unlock Sample for sample code.
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.Ftp2')
loFtp = CreateObject('Chilkat.Ftp2')
loFtp.Hostname = "ftp.example.com"
loFtp.Username = "test"
loFtp.Password = "test"
* Connect and login to the FTP server.
lnSuccess = loFtp.Connect()
IF (lnSuccess <> 1) THEN
? loFtp.LastErrorText
RELEASE loFtp
CANCEL
ENDIF
lcFtpResponse = loFtp.Feat()
? lcFtpResponse
lnSuccess = loFtp.Disconnect()
RELEASE loFtp
|