I know you are all going to answer \"use a debugging proxy server like Fiddler\" but it\'s not that simple.
Here\'s my situation: I have some code that runs on a ser
answering my own question here, because I thought of another way to do it. Basically the idea is -- you re-point the HttpWebRequest to a page that logs the incoming raw HTTP Request. In other words set up a custom HTTP handler as per this forum post:
http://forums.asp.net/t/353955.aspx
And then change just the URL in the HttpWebRequest to point to this new endpoint, but keep all other elements of the request the same. Write the result to a file or something and you're golden.