I have a php page
http://the-charlie.com/artwork/index.php?artist=Kanye+West&album=Graduation , that when I hit it directly gives me an image URL.
I have this code in my app
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,"
http://the-charlie.com/artwork/index.php?artist=Kanye+West&album=Graduation" );
try {
builder.sendRequest("", new RequestCallback() {
@Override
public void onResponseReceived(Request request, Response response) {
Window.alert(response.getText() );
Window.alert(response.getHeadersAsString());
Window.alert(response.getStatusText() );
Window.alert(Integer.toString(response.getStatusCode()));
}
@Override
public void onError(Request request, Throwable exception) {
}
});
} catch (RequestException e) {
e.printStackTrace();
}
}
Which is always returning null , with a status code of 200.
If my app runs on port 8080, is it a problem hitting a page on port 80 ( the php page ) ?
Why would this constantly be returning blank ?
Thanks!
Charlie