有没有办法修改 IE6 的 HTTP 标头?

发布于 2024-07-26 01:30:14 字数 178 浏览 2 评论 0原文

我需要能够修改 Internet Explorer 的 HTTP 标头以进行测试。

基本上,我想实现与 修改标头 插件完全相同的事情Firefox 确实如此。

I need to be able to modify the HTTP headers for Internet Explorer for testing purposes.

Basically, I want to achieve the exact same thing that the Modify Headers plugin for Firefox does.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

或十年 2024-08-02 01:30:15

要使用 Fiddler 修改标头:

1- 打开 Fiddler Web 调试器,然后在菜单工具栏中转到 < code>规则->自定义规则...(快捷键是 Ctrl + R)。 它会打开 CustomRules.js 文件。 Fiddler 可能会建议您下载 Fiddler ScriptEditor,但您可以使用任何文本编辑器对其进行编辑(我使用 notepad++)

2- 在脚本文件中查找 OnBeforeRequest(oSession: Session)

3- 您可以通过将 oSession.oRequest["NewHeaderName"] = "New header value"; 添加到 OnBeforeRequest 函数来添加新标头。 另外,要删除标头,请使用 oSession.oResponse.headers.Remove("HeaderName"); 函数。

有关更多信息,请参阅此链接

To modify the header with Fiddler:

1- Open Fiddler Web Debugger and in the menu toolbar go to Rules->Customize Rules... (shortcut is Ctrl + R). It opens the CustomRules.js file. Fiddler may suggest you to download Fiddler ScriptEditor but you can edit it with any text editor (I use notepad++)

2- Find OnBeforeRequest(oSession: Session) in the script file.

3- You can add a new header by adding oSession.oRequest["NewHeaderName"] = "New header value"; to OnBeforeRequest function. Also, to remove a header, use oSession.oResponse.headers.Remove("HeaderName"); function.

For more information see this link

星星的軌跡 2024-08-02 01:30:15

您可以安装 Fiddler 并使用 CustomRules.js 文件

You could install Fiddler and modify request headers with the CustomRules.js file

多情癖 2024-08-02 01:30:15

您可以使用 Charles Proxy 进行各种标头重写。 这是一个很棒的工具。

You could use Charles Proxy to do all sorts of header rewriting. It's a great tool.

大海や 2024-08-02 01:30:15

Proxomitron 能够修改 IE 及其免费的标头

Proxomitron has the ability to modify headers for IE and its free

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文