Reputation: 11617
I want to save the raw, full data of an HttpRequest
. 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 raw form, http requests are transfered as header fields followed by the body, so it should be possible to get the raw text representation of the whole request, but I can't work out how.
Upvotes: 4
Views: 5623