20 Ağustos 2014 Çarşamba

C# Ftp Bağlantısı

c# ftp bağlantısı kurma ,ftp bağlantısı testi.

  FtpWebRequest requestDir = (FtpWebRequest)FtpWebRequest.Create("ftp://ftp.google.com");
        requestDir.Credentials = new NetworkCredential("username", "password");
        try
        {
            WebResponse response = requestDir.GetResponse();
            //set your flag
        }
        catch
        {
        }

Hiç yorum yok:

Yorum Gönder