[groovy-user] HttpBuilder getting raw stream from a response?

43 views
Skip to first unread message

Dave King

unread,
Oct 29, 2012, 9:28:41 PM10/29/12
to us...@groovy.codehaus.org
I'm using HttpBuilder to do a Post and if I try to read the response I
get an exception that seems to be an issue with the deflation

by: java.util.zip.ZipException: unknown compression method
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:147)

There seems to be a known work around to this issue:
http://stackoverflow.com/questions/3932117/handling-http-contentencoding-deflate

But to do that I need the raw input stream from the server response
and not a reader. Is there anyway to do this with HttpBuilder?

- Peace
Dave

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Bob Brown

unread,
Oct 29, 2012, 10:01:27 PM10/29/12
to us...@groovy.codehaus.org

Dave King

unread,
Oct 30, 2012, 10:09:33 AM10/30/12
to us...@groovy.codehaus.org
No because the exception happens when the reader is created by the
framework. But good idea.

- Peace
Dave

Jason Gritman

unread,
Oct 31, 2012, 12:21:29 AM10/31/12
to us...@groovy.codehaus.org
Hello, I'm the new maintainer of HttpBuilder. I've fixed this issue in the latest 0.7-SNAPSHOT build, which you can download from http://snapshots.repository.codehaus.org/

You can view the pull request for the fix at https://github.com/jgritman/httpbuilder/pull/3.

-Jason

Dave King

unread,
Nov 1, 2012, 5:14:06 PM11/1/12
to us...@groovy.codehaus.org
Thanks. That did the trick.
Reply all
Reply to author
Forward
0 new messages