Code example for HttpURLConnection

Methods: getInputStream, getResponseCode, setInstanceFollowRedirects, setRequestMethod, setUseCaches