(Unicode 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_CkFtp2W.h>
void ChilkatSample(void)
{
HCkFtp2W ftp;
BOOL success;
const wchar_t *ftpResponse;
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
ftp = CkFtp2W_Create();
CkFtp2W_putHostname(ftp,L"ftp.example.com");
CkFtp2W_putUsername(ftp,L"test");
CkFtp2W_putPassword(ftp,L"test");
// Connect and login to the FTP server.
success = CkFtp2W_Connect(ftp);
if (success != TRUE) {
wprintf(L"%s\n",CkFtp2W_lastErrorText(ftp));
CkFtp2W_Dispose(ftp);
return;
}
ftpResponse = CkFtp2W_feat(ftp);
wprintf(L"%s\n",ftpResponse);
success = CkFtp2W_Disconnect(ftp);
CkFtp2W_Dispose(ftp);
}
|