Add an HTTP Header with an HttpModule

Posted on 2016-10-07 11:06:24 by Greg

An HttpModule is a perfect way to add an HTTP header to every request in IIS. An HttpModule is an assembly that is called on every request (and as of IIS 7 this includes non-ASPNET requests). Other uses of HttpModules include tracing, logging, and security. We have a change coming up where having an HTTP header added to certain responses will be very helpful. I thought I would share my C# code for the HttpModule and some JavaScript that will use the new HTTP header on the client to display a message.

Continue Reading...
LEADTOOLS Blog

LEADTOOLS Powered by Apryse,the Market Leading PDF SDK,All Rights Reserved