import javax.microedition.io.HttpConnection times out
Hello,
This is in a BlackBerry JDE application.
The call to 'openInputStream' always times out, as does,
connection.getResponseCode(); or
connection.getType();
try {
String URL = "http://www.google.com/index.html";
HttpConnection connection = (HttpConnection)Connector.open(URL);
connection.setRequestMethod(HttpConnection.GET);
InputStream is = connection.openInputStream(); // this times out
// ...
}
catch (Exception exc) {
String s = exc.getMessage();
}
Any ideas? Thanks.

