Shayan
Shayan

Reputation: 568

GZip compression on HTTP Request with Tomcat

I'm new to using Tomcat so perhaps I'm missing something. In the server.xml it looks as though it is possible to enable GZip compression for HTTP Responses from the server to the client. However in my application, there are large chunks of XML data being sent from the client to the server. Is there a way to enable GZip compression in tomcat so that my client sends the data compressed and it is automatically decompressed on the server side? Thanks.

Upvotes: 5

Views: 13440

Answers (2)

Chandima Janakantha
Chandima Janakantha

Reputation: 35

this works for me. see the link below.

http://viralpatel.net/blogs/enable-gzip-compression-in-tomcat/

Upvotes: -1

Jonathan Feinberg
Jonathan Feinberg

Reputation: 45364

Perhaps this 2Way HTTP Compression Servlet Filter would be helpful?

Upvotes: 5

Related Questions