Fiddler在http 411状态下显示服务器信息 [英] Fiddler displaying server information on http 411 status

查看:120
本文介绍了Fiddler在http 411状态下显示服务器信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正面临一个需要克服的问题。在我的ASP.Net应用程序中,测试团队发布了一个问题,即他们正在获取不得显示的服务器信息。

他们使用的步骤是

1.他们有开放的提琴手浏览器中的应用程序。

2.在fiddler中获取URL后右键单击URL。

3.选择重播,然后从重新发布中重新发布

4.在Composer选项卡中选择Option选项卡并取消选中Content-length header。

5.现在选择Parsed选项卡和选项Post下拉选项。

6.单击执行。



在响应标题中,它将显示服务器信息(服务器:Microsoft-HTTPAPI / 2.0) )

我在web.config和global.asax中添加了几个标签来隐藏我的服务器详细信息,它不显示状态200但不适用于状态411.



如有任何建议,我们表示赞赏。



我的尝试:



我试过以下方法,其中如果HTTP状态为200,则无效。

1.在global.asax中

HttpContext.Current.Response.Headers.Set(Server) ,);

Response.Headers.Remove(服务器);



2.在web.config中

Hi All,
I am facing an issue to overcome. In my ASP.Net application testing team had posted an issue that they are getting server information which must not be displayed.
Steps they used are
1. They have open fiddler and application in the browser.
2. After getting the URL in fiddler right click on the URL.
3. Select "Replay" then "Reissue from Composure"
4. In the Composer tab select "Option" tab and uncheck fix "Content-length header".
5. Now select "Parsed" tab and option "Post" from the dropdown option.
6. Click on Execute.

In Response header, it will show Server Information(Server: Microsoft-HTTPAPI/2.0)
I have added several tags in web.config and global.asax to hide my server details it is not displaying for status 200 but not working for status 411.

Any suggestion is appreciated.

What I have tried:

I have tried following methods, which is working if HTTP status is 200. but not working for status 411.
1. In global.asax
HttpContext.Current.Response.Headers.Set("Server", "");
Response.Headers.Remove("Server");

2. In web.config

<httpProtocol>
     <customHeaders>
       <clear/>
       <remove name="Server" />
     </customHeaders>
   </httpProtocol>

推荐答案

这通常设置在服务器级别,而不是app / website,就像在IIS或任何服务器中一样重新运行您的网站。



以下是如何在IIS上更改它的示例:删除IIS服务器版本HTTP响应标头 - IIS - 北方系统管理员 [ ^ ]
This is usually set at the server level, not app/website, like in IIS or whatever server you're running your website on.

Here is an example of how to change it on IIS: Remove IIS Server version HTTP Response Header - IIS - Sysadmins of the North[^]


您好Graeme_Grant,

感谢您采取主动,您建议的方法非常有用,但它们不适用于我的情况,因为它们已经在全局文件和配置文件中实现,我还要求我的IT管理员实现URL重写。这也是早些时候实施的。请提出其他解决方案。
Hi Graeme_Grant,
Thanks for taking initiative, the methods which you have suggested are very helpful but they don't work in my case as they are already implemented in global file and config files, I have also asked my I.T admin to implement the URL rewriting. That was also implemented earlier. Please suggest some other solution.


这篇关于Fiddler在http 411状态下显示服务器信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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