Code example for HttpURLConnection

Methods: getContentEncoding, getErrorStream, getInputStream, getResponseCode