在 Safari 中解析标头 - 类似于 Firefox 的实时 HTTP 标头?
我需要解决 Safari 将 mp3 文件作为流文件播放的奇怪问题,尽管内容的整个长度和所有内容都提供给浏览器......
显然,我将不得不解决 Range 标头,这是一个新的对我来说的话题。
我如何监控 Safari 中发送和接收的标头?有我可以使用的插件或其他技巧吗?我打开了开发人员模式,这样我就可以检查元素,但我不知道如何监视标题。
中号
I need to resolve a weird issue with Safari playing back mp3 files as streaming files although the entire length of the content and all of the content is provided to the browser...
Apparently, I will have to address Range headers, which is a new topic for me.
How would I monitor the headers being sent and received in Safari? Is there a plugin or some other trick I can use? I have developer mode turned on so I can inspect elements, but I don't know how to monitor headers.
M
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这应该有效:
检查元素>资源窗格
此时,您可能会看到一个窗口,显示“您需要启用资源跟踪才能使用此面板”,并为您提供“仅为此会话启用”或“始终启用”的选择。两者都可以,然后单击“启用资源跟踪”。
在出现的窗口中,找到您想要其标头的资源并选择它。
在右侧,现在应该有一个带有两个选项卡的标题:“标题”和“内容”。如果尚未选择,请选择“标题”。
然后,您应该会看到所选资源的标头(Safari 收到的标头)。要查看另一个资源的标题,只需选择该资源,依此类推。
This should work:
Inspect Elements > Resources pane
At this point, you may see a window that says, "You need to enable resource tracking to use this panel" and offers you a choice of "Only enable for this session" or "Always enable." Either is fine, and then click "Enable resource tracking."
In the resulting window, find the resource you want the header for and select it.
On the right hand side, there should now be a header with two tabs: "Headers" and "Content." If it's not already selected, choose "Headers."
You should then see the headers (as Safari received them) for your selected resource. To look at another resource's header, just select that, and so on.
从 Safari 5.1 开始,您可以在 Web 检查器的“网络”选项卡中查看 HTTP 标头:
然后,您可以选择左侧的资源并单击“标题”。
在旧版 Safari 中,此信息位于 Web Inspector 的“资源”选项卡中。
Starting with Safari 5.1, you can view HTTP headers in the Network tab of the Web Inspector:
You can then select on the resource on the left and click "Headers."
In older Safari versions, this information was in the Web Inspector's Resources tab.