Visual Studio Monitoring HTTP Request with a Violinist

I am trying to track the following request from VS2012 to a violinist, but I cannot:

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; 

I read about 2,000 manuals and feeds, but could not understand.
Any clue?

+8
asp.net-web-api visual-studio-2012 fiddler
source share
2 answers

Just adding fiddler to the url

 http://localhost.fiddler:8081/ 

Traffic is routed through the violinist and therefore displayed on the violinist.

PS As a loan for: stack overflow

+16
source

Check out this link - http://fiddler2.com/documentation/Configure-Fiddler/Tasks/MonitorLocalTraffic . Use local machine name or IPV4 / 6 adapter instead of localhost.

+3
source

All Articles