Response.Headers和IIS6 [英] Response.Headers and IIS6

查看:142
本文介绍了Response.Headers和IIS6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在尝试迭代Response.Headers以获得自定义缓存作业,但是当我触摸该东西时我收到以下错误:

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

这可以做到IIS6?有解决方法吗?

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除非您在集成模式下运行,否则无法访问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.

这篇关于Response.Headers和IIS6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆