C
C
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 C Downloads
#include <C_CkFtp2.h>
void ChilkatSample(void)
{
BOOL success;
HCkFtp2 ftp;
const char *ftpResponse;
success = FALSE;
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
ftp = CkFtp2_Create();
CkFtp2_putHostname(ftp,"ftp.example.com");
CkFtp2_putUsername(ftp,"test");
CkFtp2_putPassword(ftp,"test");
// Connect and login to the FTP server.
success = CkFtp2_Connect(ftp);
if (success != TRUE) {
printf("%s\n",CkFtp2_lastErrorText(ftp));
CkFtp2_Dispose(ftp);
return;
}
ftpResponse = CkFtp2_feat(ftp);
printf("%s\n",ftpResponse);
success = CkFtp2_Disconnect(ftp);
CkFtp2_Dispose(ftp);
}