Apache HTTP Components gzip request
I'm trying to send a gzipped multipart entity from a simple java
application (code to be used later in Android) to a service built by
RESTEasy. I've tried a few things, but basically it comes down to this:
GZip POST request with HTTPClient in Java
I always get an exception saying the content is not in GZIP format. I
tried removing the gzip content-encoding header and ungzipping the content
myself (not leaving it to RESTEasy), and I get the same exception.
The content I am sending is in JSON format. I am using multipart entities
because there is a lot of it, and the multipart entities are being
buffered to disk while uploaded.
I can use anything else. Is there any proven way for this to work with
Jetty Client for example?
No comments:
Post a Comment