如何使用c#从https://ftp.net4india.com/下载和上传文件? [英] how to download and upload file from or to https://ftp.net4india.com/ using c#?

查看:69
本文介绍了如何使用c#从https://ftp.net4india.com/下载和上传文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



如何使用c#从https://ftp.net4india.com/下载和上传文件?



我有简单的ftp,上传和下载文件代码但 https://ftp.net4india.com/ 并没有找到我。



请帮助我,如何使用C#从 https:// 代理上传和下载文件?



先谢谢。



Ankit Agarwal

软件工程师

解决方案

检查 C#的FTP安全客户端库 [ ^ ]



如果你没有使用任何其他图书馆。当您在属性和凭据下创建请求集时

 FtpWebRequest request =(FtpWebRequest)WebRequest.Create(serverUri); 
request.EnableSsl = true ;
request.UsePassive = true ;
request.UseBinary = true ;
request.KeepAlive = true ;
request.Credentials = new NetworkCredential(_userName,_ password);


Hello,

how to download and upload file from or to https://ftp.net4india.com/ using c#?

I have got it of simple ftp, upload and download file code but it's not getting to me for https://ftp.net4india.com/.

Please help me, how to upload and download file from or to https:// proxy using C#?

Thanks in Advance.

Ankit Agarwal
Software Engineer

解决方案

check An FTP secure client library for C#[^]

if you not using any other library. when you create request set below properties and credentials

FtpWebRequest request = (FtpWebRequest)WebRequest.Create(serverUri);
request.EnableSsl = true;
request.UsePassive = true;
request.UseBinary = true;
request.KeepAlive = true;
request.Credentials = new NetworkCredential(_userName, _password); 


这篇关于如何使用c#从https://ftp.net4india.com/下载和上传文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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