Last post Feb 18, 2008 02:12 PM by gnomcho
Jul 02, 2007 02:07 AM|monarlte|LINK
I want to get the raw http request data without going throught the properties/objects of the HttpRequest object. I just want to get the entire text that was sent to the server from the web browser (ie. get/post, accept-language, cookies, referrer, etc.).
Does anybody know of a way to do this? The HttpRequest object has a SaveAs() method that will save all the raw text data from the request to a file on the filesystem but that is not what I want to do. I want to read it in memory not from a file. I know
the HttpRequest object has a Headers property but it does not contain all the get/post data only the headers so that is not exactly what I am looking for. Also, the server variable ALL_RAW contains all the headers but not the entire request text.
Thanks so much!
Jul 02, 2007 02:39 AM|MuteThis|LINK
Jul 02, 2007 04:40 AM|monarlte|LINK
Unfortunately, that does not give me the entire http request. Just the headers. Anybody else have any ideas?
Feb 18, 2008 12:53 PM|gnomcho|LINK
Can you use the methods
MuteThis posted (Request.ServerVariables["ALL_RAW"]) + retreive whatever is in the Request.InputStream. In this way you'll have the headers and the content of the request. What else do you need?
Feb 18, 2008 02:12 PM|gnomcho|LINK
Here is a code example: