在Safari中查看HTTP标头 [英] View HTTP headers in Safari

查看:261
本文介绍了在Safari中查看HTTP标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Mac OS X Sierra上的Safari 10 Web浏览器中,并且在打开Web Inspector的情况下,我要访问诸如google.com之类的公共网站.

In Safari 10 web browser on Mac OS X Sierra and with the Web Inspector turned on, I go visit a public website such as google.com.

如何在macOS的Safari中查看HTTP标头?

How does one view HTTP headers in Safari on macOS?

推荐答案

(在此处放置完整的解决方案,以便那些不太愿意启用Web检查器的人可以看到它.)

(Putting the full solution here so people who haven't got as far as enabling the web inspector will see it.)

首先确保启用了Develop菜单:在Safari偏好设置(Cmd + ,)的Advanced窗格中,选择在菜单栏中显示开发菜单".

First ensure that the Develop menu is enabled: in the Advanced pane in Safari Preferences (Cmd + ,) select "Show Develop menu in menu bar".

然后,从Develop菜单中选择Show Page Resources(Cmd + Alt + A).然后,在视图的右上角,在选项卡栏的下面,有一个按钮显示详细信息侧栏"(Cmd + Alt + 0).点击它.

Then, from the Develop menu select Show Page Resources (Cmd + Alt + A). Then, in the top right corner of the view, just under the tab bar, there is a button to "Show the details sidebar" (Cmd + Alt + 0). Click it.

然后,您可以从左侧栏中选择每个资源,标题将出现在右侧栏中.您可能需要刷新页面才能最初看到它们.

Then you can select each resource from the left sidebar and the headers will appear in the right sidebar. You may need to refresh the page to see them initially.

这篇关于在Safari中查看HTTP标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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