Sorry forget it, it works properly, was a XSS problem Julio On May 13, 11:57 am, julio <[email protected]> wrote: > Hi > > I have a json POST like this: > > { "first": 10 , "second" : 50 } > > with "content-type:application/json" > > With an external client the server replies correctly, but using: > > RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url); > rb.setHeader("content-type", "application/json"); > try > { > rb.sendRequest("{ \"first\": 10 , \"second\" : 50 }", new > RequestCallback() { > public void onResponseReceived(Request request, > Response > response) {} > > public void onError(Request request, Throwable > exception) {} > }); > } > catch (RequestException e) { Window.alert(e.toString()); } > > look like the server even hasn't get the request. > > How can I fix it? > > Thanks, > Julio
-- 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.
