Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 132,683 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,238 people online right now. Registration is fast and FREE... Join Now!




Using FtpWebRequest to do a simple login check

 
Reply to this topicStart new topic

Using FtpWebRequest to do a simple login check, What do I need to do?

chewie
post 28 May, 2008 - 06:52 AM
Post #1


New D.I.C Head

*
Joined: 28 May, 2008
Posts: 1



Thanked 1 times
My Contributions


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?
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 06:54AM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month