响应头和 IIS6
因此,我尝试迭代 Response.Headers 来进行自定义缓存作业,但是当我触摸该东西时,我收到以下错误:
This operation requires IIS integrated pipeline mode
在 IIS6 中可以这样做吗?有解决方法吗?
var allHeaders = HttpContext.Current.Response.Headers;
// error thrown as soon as it's accessed
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AFAIK 除非您在集成模式下运行,否则无法访问 HTTP 响应标头,因为它们是在标准模式下运行时由服务器在请求执行的后期阶段发送的。
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.