HttpClient - Logging raw http request and response (HttpClient)

I’d like to know what you are using at ServiceStack (if anything) to capture raw outgoing requests and responses when coding against a third-party service.

I don’t know if ServiceStack has a utility for this.

Something along the line of this:

From this author’s post, it seems .Net didn’t support this out of the box, at least when he wrote this.

Or maybe you have a tool you could recommend?

I’ve been using a tool called HttpDebugger, but I can’t find much information on this company, and that concerns me (but it works great).


You don’t want to leave this on in production since it’s a huge performance cost but for development/troubleshooting if you enable profiling you’ll be able to view HttpClient profiling logs to display requests made with HttpClient.