Code example for Header

Methods: getValue

0
		} 
	} 
 
	public static boolean isGzipEncoded(HttpResponse response) {
		Header contentEncoding = response.getFirstHeader("Content-Encoding");
		return (contentEncoding != null && contentEncoding.getValue().equalsIgnoreCase("gzip"));
	} 
 
	public static Bitmap httpGetBitmap(String url) {
		final HttpClient client = new DefaultHttpClient();
		final HttpGet getRequest = new HttpGet(url);
 
		try { 
			HttpResponse response = client.execute(getRequest);
			final int statusCode = response.getStatusLine().getStatusCode();
			if (statusCode != HttpStatus.SC_OK) {
				Log.w(TAG, "Error " + statusCode + " while retrieving bitmap from " + url);
				return null; 
			} 
 
			final HttpEntity entity = response.getEntity();