谁能推荐一个(免费)工具来测试 Web 服务器是否使用 http 压缩?

发布于 2024-07-15 07:55:21 字数 1539 浏览 6 评论 0原文

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

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

发布评论

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

评论(8

黑色毁心梦 2024-07-22 07:55:21

如果您使用Firebug,您可以进入“net”选项卡并查看所有下载的资源。 查找“Content-Encoding”,它会告诉您服务器是否使用 gzip/etc 发送数据。

If you use Firebug you can go into the "net" tab and look at all the resources downloaded. Look for "Content-Encoding", that'll tell you if the server is sending the data using gzip/etc.

相权↑美人 2024-07-22 07:55:21

您可以使用 Firefox 的 LiveHeader 来查看响应标头。

You could use LiveHeader for Firefox to take a look at the response headers.

无力看清 2024-07-22 07:55:21

只需查看服务器发送的 HTTP 标头即可。 内容编码字段应包含有关压缩的信息。

您可以使用 Wireshark 来监控您的网络接口,包括服务器之间的通信,这将允许您查看原始标头和有效负载。

Simply look at the HTTP headers your server is sending out. The content-encoding field should contain information on compression.

You can use Wireshark to monitor your network interface, including communications between your servers, which will allow you to see the raw headers and payload.

不语却知心 2024-07-22 07:55:21

我使用“Live HTTP headers”,一个 FF 插件。

在标题中,您应该看到 Content-Encoding: {...}

对于 stackoverflow.com,我看到:“Content-Encoding: gzip”

编辑:根据评论的建议修复了要查找的标题。

I use "Live HTTP headers", a FF addon.

In the headers, you should see Content-Encoding: {...}

For stackoverflow.com, I see: "Content-Encoding: gzip"

Edit: fixed the header to look for, per the comments' suggestion.

伊面 2024-07-22 07:55:21

您还可以使用提琴手。

http://www.fiddlertool.com/fiddler/

You can also use fiddler.

http://www.fiddlertool.com/fiddler/

微凉徒眸意 2024-07-22 07:55:21

如果您没有 Firefox 或者不想安装某些扩展来检查站点是否支持压缩,您可以使用普通的旧式 telnet:

telnet stackoverflow.com 80
Trying 69.59.196.211...
Connected to stackoverflow.com.
Escape character is '^]'.
HEAD / HTTP/1.0
Host: stackoverflow.com
Accept-Encoding: gzip, deflate

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 26213
Content-Type: text/html; charset=utf-8
Content-Encoding: gzip
Expires: Mon, 09 Mar 2009 18:20:28 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
Date: Mon, 09 Mar 2009 18:20:27 GMT
Connection: close

If you don't have firefox or don't want to install some extension just to check if the site supports compression, you can use plain old telnet:

telnet stackoverflow.com 80
Trying 69.59.196.211...
Connected to stackoverflow.com.
Escape character is '^]'.
HEAD / HTTP/1.0
Host: stackoverflow.com
Accept-Encoding: gzip, deflate

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 26213
Content-Type: text/html; charset=utf-8
Content-Encoding: gzip
Expires: Mon, 09 Mar 2009 18:20:28 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
Date: Mon, 09 Mar 2009 18:20:27 GMT
Connection: close
胡大本事 2024-07-22 07:55:21

我刚刚从 Meatspace 获悉,Firefox 开发人员的工具栏也有一个视图标题选项,因此您也可以在那里检查编码类型。

I've just been informed from meatspace that the firefox developer's toolbar also has a view headers option, so you can check the encoding type there as well.

零時差 2024-07-22 07:55:21

另一个 Firefox 插件:HttpFox

Yet another Firefox addon: HttpFox.

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