我正在使用 FtpWebRequest 上传多个文件.
但是对于我打开和关闭连接的每个文件.
I'm uploading multiple files using FtpWebRequest.
But for every file I'm opening and closing a connection.
如何使用同一连接上传多个文件?
How can I upload multiple files using the same connection?
像一个 ftp 客户端应用程序,使用用户名和密码连接,更改目录,上传文件 1,上传文件 2,上传文件 3,断开连接.
Like a ftp client application, connect using username and password, change directory, upload file1, upload file2, upload file3, disconnect.
FtpWebRequest.KeepAlive的默认值为true.您是否明确将 KeepAlive 设置为 false?
The default value of FtpWebRequest.KeepAlive is true. Are you explicitly setting KeepAlive to false?
这篇关于FTP 使用 .NET 上传多个文件而无需断开连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
ASP.NET Core 使用 Azure Active Directory 进行身份验证并ASP.NET Core authenticating with Azure Active Directory and persisting custom Claims across requests(ASP.NET Core 使用 Azure Active Directory 进行身
ASP.NET Core 2.0 Web API Azure Ad v2 令牌授权不起作用ASP.NET Core 2.0 Web API Azure Ad v2 Token Authorization not working(ASP.NET Core 2.0 Web API Azure Ad v2 令牌授权不起作用)
ASP Core Azure Active Directory 登录使用角色ASP Core Azure Active Directory Login use roles(ASP Core Azure Active Directory 登录使用角色)
如何获取守护进程或服务器到 C# ASP.NET Web API 的How do I get Azure AD OAuth2 Access Token and Refresh token for Daemon or Server to C# ASP.NET Web API(如何获取守护进程或服务器到 C# ASP.N
.Net Core 2.0 - 获取 AAD 访问令牌以与 Microsoft Graph.Net Core 2.0 - Get AAD access token to use with Microsoft Graph(.Net Core 2.0 - 获取 AAD 访问令牌以与 Microsoft Graph 一起使用)
异步调用时 Azure KeyVault Active Directory AcquireTokenAAzure KeyVault Active Directory AcquireTokenAsync timeout when called asynchronously(异步调用时 Azure KeyVault Active Directory AcquireTokenAsync 超