Code example for HttpURLConnection

Methods: connect, getInputStream, getResponseCode, getResponseMessage