Este es el código:
Código:
Gracias, un saludo. RequestBuilder requestBuilder = new RequestBuilder(RequestBuilder.GET,sUrl); try { requestBuilder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { System.out.println("ex "+exception); } public void onResponseReceived(Request request, Response response) { System.out.println("text "+response.getText()); } }); } catch (RequestException ex) { System.out.println(ex); }