Hi all,

I used a http requestbuilder for getting data generated by a app from the 
same server. This works on windows/linux for any browser.
But on  iPad/android, response.getStatusCode() is 0 and response.getText() 
is empty.


What can be the difference on these mobile devices ?


Thanks in advance


NB : I used the standard code :
with url like  http://mydomain.com/cgi-bin/WebObjects/MyApp

      public void doGet(String url) {
            RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, 
url);
//            builder.setHeader("Content-Type", "text/html; 
charset=ISO-8859-1");
            try {
              Request response = builder.sendRequest(null, new 
RequestCallback() {
                public void onError(Request request, Throwable exception) {
                  // Code omitted for clarity
                }

                public void onResponseReceived(Request request, Response 
response) {
                  // Code omitted for clarity
                    if (STATUS_CODE_OK == response.getStatusCode()) {
                        
                    String myData =  response.getText();

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to