Code example for HttpURLConnection

Methods: getContent, getInputStream, getResponseCode, setInstanceFollowRedirects, setRequestMethod, setUseCaches