Reputation: 294
While there is firebug for monitoring browser activity the best free tool for monitoring visual studio debugging or some custom app seems to be fiddler.
Apart from having configuration issues that might proove quite dificult to solve and having features that are hard to configure, fiddler won't capture traffic when proxyserver is used and have issues with VPN clients. It will miss some https requests and show only some CONNECT requests sometimes, and won't display requests when response times out. Yet worse, fiddler seems to change requests, for example there are some google servers that won't respond at all when fiddler is used.
So I'm looking for a way to log requests within my app directly when they are being sent, and of course I don't want to log the request object, but the real thing thats being sent.
I've tried to use fiddler core API with no success, and I don't like it anyway, it starts a proxy like the tool. Instead I want to capture the request/response comunication in my app, in the same thread synchronously. The HttpWebRequest must implement sockets, so there must be a way to intercept what's going on, but I'm not able to find some good explanation.
Any ideas how this can be done?
Upvotes: 1
Views: 875
Reputation: 357
Try GoogleChrome's PostMan extension. It is very good api testing tool
Upvotes: 0
Reputation: 31610
At the .NET level you can enable System.NET tracing/logging. You will get all the information you need (or even more). Sometimes it might be a bit hard to put things together but once you figure this out it all makes sense. Here is an msdn article showing how to enable System.NET tracing.
Upvotes: 1