测试服务器 HTTP 1.1 压缩

发布于 2024-08-09 16:09:45 字数 113 浏览 2 评论 0原文

我想了解我正在访问的网站的 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 技术交流群。

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

发布评论

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

评论(1

坏尐絯℡ 2024-08-16 16:09:45

对此没有通用的案例答案。 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.

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