Code example for HttpURLConnection

Methods: connect, getContentLength, getContentType, getInputStream, setRequestProperty