我们如何使用http post上传文件?
我正在使用名为 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是说
WebClient
吗?尝试以下示例:使用 C# 下载和上传文件编辑:尝试这篇文章:使用 REST 上传文件
You meant
WebClient
? Try this sample: Download And Upload A File Using C#EDIT: Try this post: Upload file with REST