Code example for HttpURLConnection

Methods: connect, getContentLength, getInputStream, setDoInput, setRequestMethod