Code example for HttpURLConnection

Methods: getInputStream, setConnectTimeout, setInstanceFollowRedirects, setReadTimeout