Thanks a lot Fred, for the response. I had given up on getting any
response at all.
Yes, I have read the examples from the docs and am getting a 200
response back, but the text is empty. Below is some code to give you
an idea.
requestBuilder.sendRequest(args.toString(), new
RequestCallback()
{
@Override
public void onResponseReceived( final Request request,
final Response response)
{
String ret = response.getText();
External.logDebug( "Received response to login :" +
response.getStatusCode() + " " + response.getStatusText() + ": " +
"response length = " + ret.length() + " " + ret);
I can see from the logs that the status code is 200, statustext is
"unknown", response length is 0, and the response is an empty
string.
In Fiddler, I can see that I did get a valid response with text in it.
The header in fiddler says that the transfer encoding is of type
"chunked".
I've tried to do various different searches on the web to find out if
there is anything out there which says if "chunked" decoding is
supported by gwt but i didn't find anything.
I know that on the same machine, with the same browser sending the
same request to the same URL, hand written javascript code works fine,
but GWT generated javascript does not work.
I am using ie6 as the string in my gwt.
On Jul 2, 10:34 am, Fred Sauer <[email protected]> wrote:
> Amitabh,
> Have you tried one the examples from the docs?
>
> http://code.google.com/search/#p=webtoolkit&q=requestbuilder%20respon...
>
> Have tired using IeHttpHeaders browser plugin (or Charles Web Proxy) to
> confirm that there is data being sent back from the server as you expect?
>
> For IE7, "ie6" is currently the correct value, although you should not have
> to specify any value for the user agent. GWT will auto-detect. In fact, if
> you specify an incorrect value, you'll get very strange behavior.
>
> Fred
>
>
>
> On Fri, Jun 26, 2009 at 11:59 AM, Amitabh <[email protected]> wrote:
>
> > I'm a newbie at 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()", I get a zero and I can't see the
> > text. Is that because of the chunked transfer encoding in the
> > response ? How do I decode the response using GWT ? I know the
> > response is valid since I
> > can see the response through fiddler. Is there anything out there that
> > can help me decode the response ? I'm using IE7 but am specifying the
> > user.agent string as "ie6" since i don't know what else to specify
> > there. "ie7" doesn't work.
> > Would appreciate any help in pointing me in the right direction. I
> > can't find reference to it anywhere else on the web. I'm spending a
> > lot of time on this issue and can't get anywhere. I'd really
> > appreaciate if a a member of the group at least sends a one liner
> > response stating if this is a known problem or isn't a problem ever
> > heard about before or if my issue is unclear.
>
> > Regards,
> > Amitabh.
>
> --
> Fred Sauer
> [email protected]
>
> []
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---