Amitabh, I would focus on getting the sample code to work as is, then figure out the differences between the sample code and your app.
Fred On Tue, Jul 7, 2009 at 1:51 PM, Amitabh <mathraw...@gmail.com> wrote: > > Is there anything else I can try ? I'm running out of options. > > On Jul 6, 1:31 pm, Ian Bambury <ianbamb...@gmail.com> wrote: > > Hi, > > Have you got the line > > > > requestBuilder.setHeader("Content-Type", > > "application/x-www-form-urlencoded"); > > > > in there somewhere? > > > > Ian > > > > http://examples.roughian.com > > > > 2009/7/6 Amitabh <mathraw...@gmail.com> > > > > > > > > > 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. > > > -- Fred Sauer f...@allen-sauer.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---