Code example for HttpURLConnection

Methods: getContentLength, getHeaderField, getInputStream, setDoInput