You understand that you are not using yours HttpURLConnection, right? If you want to get InputStreamhelp HttpURLConnection, you need to call
InputStream is = new BufferedInputStream(urlConn.getInputStream());
In addition, I believe that it is standard to use Apache HttpClient for this kind of thing with Android, since it is built-in and a much better API than standard Java material.
source
share