try the following: URL url = new URL(urlString); HttpURLConnection conn = ( HttpURLConnection)url.openConnection(); conn.
stackoverflow.com