Wednesday, October 5, 2016

Use RestTemplate with gzip

To use RestTemplate with gzip, add the following dependency:

compile("org.apache.httpcomponents:httpclient")

Reference:
http://stackoverflow.com/questions/34415144/cannot-parse-gzip-encoded-response-with-resttemplate-from-spring-web

No comments:

Post a Comment