I'm working on a program that involves uploading some files via FTP. However, I'd like to abort the process if the username and password given by the user are incorrect.
Is there any way to "test" if the pair is correct? Is a utility like ftp or curl able to do that, or should I use some feature (apparently hidden at my eyes) from libcurl?
Any ideas are really appreciated. Maybe this sound like a question coming from a dummy programmer, but indeed I've never dealt with FTP (or any other protocol) directly. Please consider writing "you didn't get the point" or "you're crazy" if needed.