3

What is the best method to trace programmatically the full raw HTTP request when using the WebClient class?

fin
  • 1,275
  • 4
  • 18
  • 34

1 Answers1

8

You can achieve it programmactically by using System.Net tracing

See example here on MSDN http://msdn.microsoft.com/en-us/library/ty48b824.aspx

HatSoft
  • 11,077
  • 3
  • 28
  • 43
  • 2
    Thanks. This works but what I'm really after is a method that would give me access to the data within the code itself. – fin Jul 06 '12 at 09:04