在 Safari 中解析标头 - 类似于 Firefox 的实时 HTTP 标头?

发布于 2024-09-16 07:57:21 字数 204 浏览 1 评论 0原文

我需要解决 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 技术交流群。

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

发布评论

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

评论(2

初熏 2024-09-23 07:57:21

这应该有效:

检查元素>资源窗格

此时,您可能会看到一个窗口,显示“您需要启用资源跟踪才能使用此面板”,并为您提供“仅为此会话启用”或“始终启用”的选择。两者都可以,然后单击“启用资源跟踪”。

在出现的窗口中,找到您想要其标头的资源并选择它。

在右侧,现在应该有一个带有两个选项卡的标题:“标题”和“内容”。如果尚未选择,请选择“标题”。

然后,您应该会看到所选资源的标头(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.

孤檠 2024-09-23 07:57:21

从 Safari 5.1 开始,您可以在 Web 检查器的“网络”选项卡中查看 HTTP 标头:

  1. 在“首选项”->“启用开发”菜单中启用“开发”菜单。高级(如果还没有)。
  2. 在您的网页上,从“开发”菜单中选择“显示 Web 检查器”。
  3. 切换到网络选项卡。
  4. 重新加载页面。

然后,您可以选择左侧的资源并单击“标题”。

在旧版 Safari 中,此信息位于 Web Inspector 的“资源”选项卡中。

Starting with Safari 5.1, you can view HTTP headers in the Network tab of the Web Inspector:

  1. Enable the Develop menu in Preferences -> Advanced, if it isn't already.
  2. From your web page, choose Show Web Inspector from the Develop menu.
  3. Switch to the Network tab.
  4. Reload the page.

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.

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