Test Server HTTP 1.1 Compression
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.
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.
精彩评论