2

I'm having a problem with a POST I'm doing using the HttpWebRequest object from C#. In order to analyze the problem I would like to know exactly what is being sent over the wire. The problem is that I'm also using HTTPS so I can't sniff the wire. I need some way of printing out to the Console all the relevant information of the HttpWebRequest object or something like that. Thank you for your help.

Alfred B. Thordarson
  • 4,460
  • 8
  • 39
  • 37

2 Answers2

5

You can use Fiddler to debug HTTPS traffic.

Michael Kniskern
  • 24,792
  • 68
  • 164
  • 231
0

Could you set a breakpoint in the code and look at the Request object in the debugger and look through the ServerVariables collections to see what it has? Alternatively, you could do a Response.Write looping over each element in the Request.ServerVariables and see the name/value pairs that are stored in a web page if you want that.

JB King
  • 11,860
  • 4
  • 38
  • 49