开发者

Response.Headers and IIS6

开发者 https://www.devze.com 2023-03-11 06:12 出处:网络
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:

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开发者_如何学Go 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消