public void open(String url) throws IOException {
  URL urlConn=new URL(url);
  connection=(HttpURLConnection)urlConn.openConnection();
  connection.connect();
}

public void open ( String url ) throws IOException { URL urlConn = new URL ( url ) ; connection = ( HttpURLConnection ) urlConn . openConnection ( ) ; connection . connect ( ) ; }
open the http connection
