Hi, Are you trying to access a service on another domain? For instance, if the domain of your application differs from the URL you want to send a HTTP GET, the sandbox where your GWT application runs will not allow you to complete the request, and will send back the statusCode equals to 0. I am facing the same problem; there are a lot of solutions, please see this: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/48413bdb6e5b292#msg_71f28d8b382e7f04 and this http://code.google.com/p/google-web-toolkit/issues/detail?id=3131
[]'s Rosfran Borges On 14 ago, 09:50, Thomas Broyer <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
