String url="https://www.google.lk/"; HttpConnection con = null; InputStream is = null; try { con = (HttpConnection) Connector.open(url); int responseCode = con.getResponseCode(); Dialog.alert(String.valueOf(responseCode )); } catch(Exception e) { Dialog.alert(e.getMessage()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)