Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 11 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(8)
如果您使用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.
您可以使用 Firefox 的 LiveHeader 来查看响应标头。
You could use LiveHeader for Firefox to take a look at the response headers.
只需查看服务器发送的 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.
我使用“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.
您还可以使用提琴手。
http://www.fiddlertool.com/fiddler/
You can also use fiddler.
http://www.fiddlertool.com/fiddler/
如果您没有 Firefox 或者不想安装某些扩展来检查站点是否支持压缩,您可以使用普通的旧式 telnet:
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:
我刚刚从 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.
另一个 Firefox 插件:HttpFox。
Yet another Firefox addon: HttpFox.