Does anyone know how I could get IIS to log POST data or the entire HTTP request?
IIS Log Request Body / POST Data
httpiislogging
Related Topic
- Iis – When does IIS log a request
- HTTP Basic Authentication – Can You Pass User/Pass in URL Parameters?
- Windows – IIS 7.5 Log Request Processing Time
- Iis – weird POST request in IIS logs
- Nginx – echo_read_request_body doesn’t work. How to log POST request body (nginx)
- HTTP pipelining: producing response before request body has finished
Best Answer
The IIS logs only record querystring and header information without any POST data.
If you're using IIS7, you can enabled Failed Request Tracing for status code 200. That will record all of the data and you can select which type of data to include.
In either IIS6 or 7, you can use Application_BeginRequest in global.asax and create your own logging of POST data.
Or, in IIS7, you can write a HTTP Module with your own custom logging.