|
Hi all!
I'm building a custom application for use at work, where in I have a timer service that checks the status of our main servers, and outputs the info to an html page. Got that working but I also want to incorporate a check for VPN, FTP, and our downloads website as well..
The problem with the FTP is I'm trying to use FtpWebRequest to just do a simple login check. I've been reading the documentation on it through MSDN for C# but It's not quite clear to me how I go about simply ensuring that the FTP server is there, and that you can login...maybe just ensuring that it's asking you for a username and pasword? I can pass the username and password ok, but not sure on how to read the results and such.
Basically I want to hit the FTP server and if the response on the last line perhaps matches User <ftp.server.com:<none>>: then pass the results as success, the ftp server is up and running.
Any thoughts and hints here?
|