Code example for Header

Methods: getValue

0
                    + response.getStatusLine().getStatusCode());
            } 
            Header[] clHeaders = response.getHeaders("Content-Length");
            if (clHeaders.length > 0) {
                Header header = clHeaders[0];
                return Long.parseLong(header.getValue());
            } 
            return -1; 
        } 
 
        private String normalizeUrl(String url) throws MalformedURLException {
            return (new URL(new URL(mFileConfigUrl), url)).toString();
        } 
 
        private InputStream get(String url, long startOffset,
                long expectedLength)
            throws ClientProtocolException, IOException { 
            url = normalizeUrl(url);
            Log.i(LOG_TAG, "Get " + url);
 
            mHttpGet = new HttpGet(url);