加拿大华人论坛 美国华人新闻How to Remove IIS "Server" Header?
在加拿大
可以通过代码实现: 代码: public class Module : IHttpModule{public Module(){}#region IHttpModule Memberspublic void Dispose(){return;}public void Init(HttpApplication context){context.EndRequest += new EventHandler(context_EndRequest);}void context_EndRequest(object sender, EventArgs e){HttpApplication app = (HttpApplication)sender;app.Response.Headers.Remove("Server");}#endregion 但是仅限于IIS7+.net 3.0+The Headers property is only supported with the IIS 7.0 integrated pipeline mode and at least the .NET Framework 3.0. When you try to access the Headers property and either of these two conditions is not met, a PlatformNotSupportedException is thrown.
·加拿大新闻 全新奥迪A6L3.0T:2026年上市,外观变化太大?
·加拿大新闻 发现了吗?房贷才是检验牛马的唯一标准
·加拿大新闻 [评论] 保守党频出状况博励治领导地位岌岌可危
·加拿大新闻 幕后牵线曝光!万锦自由党议员出手,促成马荣铮跳槽
·加拿大新闻 加拿大大部分地区将迎“白色圣诞”安省魁省概率最高
·生活百科 这算不算车道?
·中文新闻 悉尼女子与兄弟争夺继承权后挪用100万澳元








