try { URL myURL = new URL("http://login.szn.cz"); URLConnection myURLConnection = myURL.openConnection(); myURLConnection.connect(); } catch .