public void httptest()
HttpConnection http = (HttpConnection) Connector.open(URL);
InputStream in = http.openInputStream();
String response = "";
int ch = 0;
while((ch = in.read()) != -1)
response += (char)ch;
I use this to test , and it get the results like this "Follow-Me.ca", so it's no problem of your code!
From your information, I'm confused about your JDE4.2.1 through network. As known to all ,JDE4.2.1 do not include MDS like JDE4.1.0, so I'm wondering how are you access the network by JDE4.2.1! And you can access the network by the browser include in BB for a testing!
Because I don't know the better way to access the network in JDE4.2.1, I'm using the MDS from JDE4.1.0 instead, and it works well now. But I don't know what will happen in the future! If you know a better way to access network through JDE4.2.1 , please let me know!