Response.Headers and IIS6

橙三吉。 提交于 2019-12-11 18:38:13

问题


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

回答1:


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.



来源:https://stackoverflow.com/questions/6269261/response-headers-and-iis6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!