Transfer files over FTPS (SSL/TLS) using C#.Net

前端 未结 2 1520
名媛妹妹
名媛妹妹 2020-12-03 00:11

I\'m writing an application that syncs files over an FTP site. Right now it\'s working by connecting through regular FTP, but now our IT guys want to set this up over a secu

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-03 00:32

    This article explains how to do it, with source code.

    The purpose of this article is to create a C # FTP client in Secure mode, so if you don’t have much knowledge of FTPS, I advise you to take a look at this: FTPS.

    In the .NET Framework, to upload a file in FTPS mode, we generally use the FtpWebRequest class, but you can not send commands with quote arguments, and even if you search on the web, you will not find a concrete example of a secured C# FTP client.

    It’s for those reasons I decided to create this article.

提交回复
热议问题