简体   繁体   中英

How do I read response headers in a .NET 4.0 app running on IIS6?

I am writing a custom IHttpModule implementor so I can log request/response information as required. However I've hit a stumbling block when attempting to read the response headers. HttpResponse.Headers is now only supported if you are running on IIS7 and in integrated pipeline mode. I need this module to be installed in web applications hosted under IIS6, so I need an alternative way to get this information.

What is the best way to achieve this?

Why do you as the server need to read them?

I recall being able to write them as far back as IIS 5 in the Page.Load event handler.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM