Code example for HttpURLConnection

Methods: getHeaderField, setDoInput, setRequestMethod