GWT chunked and gzip decoding using RequestBuilder

161 views
Skip to first unread message

sasha linder

unread,
Sep 12, 2011, 12:33:04 PM9/12/11
to Google Web Toolkit
I'm a new with GWT and am using RequestBuilder to send and receive a
request to a server which is sending me a response which has transfer
encoding "chunked" and content encoding gzipped. In the response when
I do "response.getText().Length()".

What is the right way to handle such responses?
I'm trying to work with the http://www.google.com/finance/info?infotype=quote&q=
quote service.

I saw the same questions online but no answers.
I can handle it on the server side , but I prefer if it possible to
use the client side.
What am I missing?

Thomas Broyer

unread,
Sep 12, 2011, 1:35:51 PM9/12/11
to google-we...@googlegroups.com
This is something the browser is in charge of decoding. response.getText() should give you the "de-chunked" data. If that's not the case, that probably means your server sends chunked data unconditionally, i.e. even if the browser doesn't tell it it accepts it.
Reply all
Reply to author
Forward
0 new messages