我们如何使用http post上传文件?

发布于 2024-08-19 05:05:44 字数 275 浏览 4 评论 0原文

我正在使用名为 HttpClient 的 HTTP API 来使用“post”上传文件,但无法找到相同的任何示例代码。

有什么想法吗?有什么例子/实现吗?

编辑:-

我的意思是名为 HttpClient 的 HTTP API - 请参阅“使用 HttpClient 使用 RESTful 服务” 这里

I am using HTTP API called HttpClient to upload the file using "post", but haven't been able to find any sample code for the same.

Any ideas? Any examples/implementations?

Edit:-

I meant HTTP API called HttpClient - See "Consuming RESTful Services with HttpClient" here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一身仙ぐ女味 2024-08-26 05:05:44

您是说 WebClient 吗?尝试以下示例:使用 C# 下载和上传文件

编辑:尝试这篇文章:使用 REST 上传文件

You meant WebClient? Try this sample: Download And Upload A File Using C#

EDIT: Try this post: Upload file with REST

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文