测试服务器 HTTP 1.1 压缩
我想了解我正在访问的网站的 HTTP 1.1 压缩情况。 我需要用Java 以编程方式完成它。
我想了解的是: 服务器是否支持传入请求的压缩? 服务器是否支持响应压缩?
提前致谢。
I want to find about the HTTP 1.1 compression of the site I am talking to.
I need to do it programmatically in Java.
What I want to find out is:
Does the server support compression for incoming requests?
Does the server support compression for responses?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对此没有通用的案例答案。 HTTP/1.1 规范允许客户端告诉服务器它接受压缩响应,但是从响应中您无法区分无法压缩响应的服务器和刚刚决定不压缩单个响应的服务器。
There isn't a general case answer for this. The HTTP/1.1 spec lets the client tell the server that it accepts compressed responses, but from the response you can't tell a difference from a server that can't compress responses and a server that just decided not to compress your single response.