使用.net 2.0连接到FTP服务器 [英] Connect to FTP Server with .net 2.0

查看:192
本文介绍了使用.net 2.0连接到FTP服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找连接到现有的FTP服务器,上传文件,等待服务器生成报告,并在VB.NET 2.0 WinForms项目中将该报告下载回本地计算机。



是否有一个现有的FTP库对我有帮助?我的任务似乎很简单,我宁愿不进入主动与被动,套接字等世界。

System.Net.FtpWebRequest和System.Net.WebClient都可以做到这一点。



WebClient更简单,但支持更少的功能。我还没遇到FtpWebRequest无法处理的许多情况。


I'm looking to connect to an existing FTP server, upload a file, wait while the server generates a report on it, and download that report back to the local machine in a VB.NET 2.0 WinForms project.

Is there an existing FTP library that would be helpful to me for this? My task seems simple enough that I'd rather not get into the world of active vs. passive, sockets, etc.

解决方案

System.Net.FtpWebRequest and System.Net.WebClient can both do this.

WebClient is simpler but supports less features. I haven't run into many situations that FtpWebRequest can't handle.

这篇关于使用.net 2.0连接到FTP服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆