jhd
hi.
i have wrtten simple code to read data from html page using httpConnection
with following code
now what is the problem is when i am runnig tis code with Nokia 6030 it will read the content from given url but when i will install same application on n3230/n7710/sony erricssion k300iCode:private void sendHttpGet(String url) { responseMessage = new StringBuffer(); try{ hcon = (HttpConnection)Connector.open(url, 3); hcon.setRequestMethod("GET"); dis = new DataInputStream(hcon.openInputStream()); int j; while((j = dis.read()) != -1) { responseMessage.append((char)j); } mainForm.append(responseMessage.toString()); } catch(Exception e){ } }
it will establish connection but will not read content and also it will not connecting to specific url.
it will give error message Symbain error -33 time out
Please, any one who know the solution please help....
Regards,
Jasmit vala

Reply With Quote

