I want to save raw full HttpRequest
data. At the moment I have this:
Request.ContentEncoding.GetString(Request.BinaryRead(int.MaxValue));
But this only gets the body of the HttpRequest. I also want to get the headers. In the original form, HTTP requests are transmitted as header fields followed by the body, so it should be possible to get an unprocessed textual representation of the entire request, but I cannot figure out how to do this.
source share