JAVA中的HttpClient C#中如何实现

2025-05-14 16:24:56
推荐回答(2个)
回答1:

用 WebClient,下面是凭记忆写的代码,大概是这么个意思。

WebClient client = new WebClient();

var response = client.UploadData("url",File.ReadAllBytes("filePath"));

其他的数据处理部分请自行查文档。

回答2:

C# 中的WebClient 可以做上传下载 用法很简单 自己问度娘 很多介绍