【发布时间】:2013-02-17 01:32:32
【问题描述】:
如何使用 C# 和 HttpClient 创建以下 POST 请求:
我的 WEB API 服务需要这样的请求:
[ActionName("exist")]
[HttpPost]
public bool CheckIfUserExist([FromBody] string login)
{
return _membershipProvider.CheckIfExist(login);
}
【问题讨论】:
-
你在图片中使用的是什么 HTTP 客户端?
-
服务是Web Api MVC。 JSON 格式 用于请求?
标签: c# asp.net-web-api dotnet-httpclient