Code example for HttpURLConnection

Methods: connect, disconnect, getHeaderField, getRequestProperties, setInstanceFollowRedirects, setRequestMethod