9

I would like to monitor HTTP request headers. Does IIS log this information somewhere?

Saar
  • 193
  • 1
  • 1
  • 4

5 Answers5

11

IIS can log few HTTP headers; including Referer, Cookie and User-agent; but not all. If you want to log any of these variables, you'll have to set them up from IIS manager (Web Site Properties > Web Site Tab > Enable Logging > Properties)

Salman A
  • 492
  • 2
  • 9
  • 17
3

To log custom headers you can use IIS Advanced Logging feature. A good article on it can be found at http://www.iis.net/learn/extensions/advanced-logging-module/advanced-logging-for-iis-custom-logging

  • Adding detail from the link would improve this answer. Links break and that renders the answer less useful – Dave M Apr 20 '15 at 12:34
3

You can use failed request tracing in IIS to include status code 200. This would log successful requests too and you can view all request headers in the "request details" > "general request headers" section.

EEAA
  • 109,363
  • 18
  • 175
  • 245
Houratious
  • 71
  • 2
2

you can use software like: http://iismonitor.motobit.com/ or ethereal

Roger
  • 151
  • 3
1

I would reccomend using Wireshark. It is an excellent tool and the more familiar you are with it the more uses you will find for it.

Also, because HTTP headers are sometimes broken into multiple TCP segments you might have to enable "Reassemble HTTP headers spanning multiple TCP segments".

Hope that helps.

JohnyD
  • 1,614
  • 3
  • 20
  • 29