Tom*_*mer 8 http fiddler asp.net-web-api visual-studio-2012
我试图在提琴手上监视来自VS2012的以下请求,但不能:
var client = new HttpClient();
client.BaseAddress = new Uri("http://localhost:8081/");
var product = new Product() { Description = "blabla", CatalogName = "myName"};
MediaTypeFormatter jsonFormatter = new JsonMediaTypeFormatter();
// Use the JSON formatter to create the content of the request body.
HttpContent content = new ObjectContent<Product>(product, jsonFormatter);
// Send the request.
HttpResponseMessage resp = client.PostAsync(@"odata/Products/", content).Result;
var result = resp.Content.ReadAsStringAsync().Result;
Run Code Online (Sandbox Code Playgroud)
我已经阅读了2000手册和饲料问题,但无法弄清楚.
任何线索?
Tom*_*mer 18
只需将小提琴添加到网址即可
http://localhost.fiddler:8081/
Run Code Online (Sandbox Code Playgroud)
流量通过提琴手传递,因此显示在提琴手上.
PS作为信誉:https://stackoverflow.com/a/13358261/805138
| 归档时间: |
|
| 查看次数: |
14805 次 |
| 最近记录: |