(C) 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
#include <C_CkFtp2.h>
void ChilkatSample(void)
{
HCkFtp2 ftp;
BOOL success;
const char *ftpResponse;
// 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);
}
|