【发布时间】:2014-07-21 11:31:50
【问题描述】:
是否可以查看或调试发送到 webapi 的帖子?
var parameters = new List<KeyValuePair<string, string>>();
parameters.Add(new KeyValuePair<string, string>("currency", "BTC"));
httpContent content = new FormUrlEncodedContent(parameters);
HttpResponseMessage response = await client.PostAsync("/public/currency",content);
我想知道发送了什么,不知道怎么发送?我必须使用提琴手吗?
这是我尝试查看的内容 ----->
POST /path/script.cgi HTTP/1.0 发件人:frog@jmarshall.com 用户代理:HTTPTool/1.0 内容类型:application/x-www-form-urlencoded 内容长度:32
home=Cosby&favorite+flavor=flies
谢谢
【问题讨论】:
标签: asp.net-web-api