| (Classic ASP) FTP FEAT CommandSends 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
 
 <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
' 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")
set ftp = Server.CreateObject("Chilkat.Ftp2")
ftp.Hostname = "ftp.example.com"
ftp.Username = "test"
ftp.Password = "test"
' Connect and login to the FTP server.
success = ftp.Connect()
If (success <> 1) Then
    Response.Write "<pre>" & Server.HTMLEncode( ftp.LastErrorText) & "</pre>"
    Response.End
End If
ftpResponse = ftp.Feat()
Response.Write "<pre>" & Server.HTMLEncode( ftpResponse) & "</pre>"
success = ftp.Disconnect()
%>
</body>
</html>
 |