IIS Logs
am 21.11.2007 18:19:22 von Joseph GeorgeHi,
Is there any way to log the entire POST body of a request in IIS
logs?
Rather than logging just the GET requests (with querystring).
Thanks,
JGP
Hi,
Is there any way to log the entire POST body of a request in IIS
logs?
Rather than logging just the GET requests (with querystring).
Thanks,
JGP
On Nov 21, 9:19 am, JGP
> Hi,
>
> Is there any way to log the entire POST body of a request in IIS
> logs?
> Rather than logging just the GET requests (with querystring).
>
> Thanks,
> JGP
Yes, it is possible, but there is no built-in feature in IIS to do it
by default.
Besides, what should happen if the client sends a 2GB POST ? What
length should the log truncate at? What encoding should the log file
take (suppose the POST body is binary data). These things are not
defined in any log format specification.
If you want to view the HTTP entity body being sent, I suggest using
Network Monitor or similar network sniffer tools. If the HTTP request
is sent using System.Net, you can enable System.Net tracing to view
the entity body as well.
There are lots of good ways to get that POST request entity body for
examination. Fetching it from a web server log does not sound like a
good idea.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//