简体   繁体   中英

Response.Headers and IIS6

So I'm trying to iterate over Response.Headers for a custom caching job, but I'm getting the following error when I touch the thing:

This operation requires IIS integrated pipeline mode

It this possible to do in IIS6? Is there a workaround?

var allHeaders = HttpContext.Current.Response.Headers;  
// error thrown as soon as it's accessed

AFAIK you cannot access the HTTP response headers unless you are running in integrated mode because they are sent by the server at a later stage of the execution of the request when running in standard mode.

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