On 14 août, 11:07, grue <[email protected]> wrote:
> Hi,
>
> I try to make an HTTP request via RequestBuilder. The problem is that
> no valid response is returned by Response.getText() and
> Response.getStatusCode() returns 0. I found out that the problem might
> be that
> the response content-type is text/plain while RequestBuilder only
> supports application/xml and application/json.
> Is that true?
No, that's plain wrong.
> If yes, what's the reason for this? How can I get around
> this issue?
This most likely means there's been an error (most likely a network
error). I know for sure that Firefox also calls your callback and sets
status==0 when you navigate away from the page (or refresh it, which
is equivalent).
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---