I'm using CInternetSession and CFTPConnection MFC classes to put a file to an FTP server. However there is an intermittent problem showing up where the file appears on the remote server as incomplete, missing the last couple of hunder bytes.

The CFTPConnection.PutFile() returns success, indicating that nothing went wrong even when the file is incomplete at the far end.

I am looking for some way of getting more details logs from the FTP put but can find nothing in the documentation that seems to allow this. Ideally I want something similar to what you would get from an FTP client output.

Is this possible with these classes or will I just have to use a third part FTP client and parse the logs it outputs?

Many thanks,
Brian.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.