I just wrote a simple Midlet that create a connection to my localhost (with Tomcat 4.0.3) and try to read an XML document.
String url = "http://localhost:8080/examples/servlet/Regia?all=1";
StringBuffer sbuf = new StringBuffer();
HttpConnection c = null;
InputStream is = null;
boolean blOut = false;
c = (HttpConnection) Connector.open(url);
is = c.openInputStream();
String status = parse(is);
Here is the code. Compiling the code is all rigth, packaging too. When I execute the jar in Symbian Series 60 (nokia version) the emulator ask me which kind of connection use (Direct Http is the only one), i wait some second and the program stop in timeout, I obtain an IOException n° 109. Y? The code is right, I know. Is all about the Emulator? Or more?