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 <[email protected]>
>
> 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.
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---