Code example for HttpHead

0
		return executeRequest(new HttpGet(uri), true);
	} 
 
	@Override 
	public HttpResponse head(String uri) {
		return executeRequest(new HttpHead(uri));
	} 
 
	@Override 
	public HttpResponse post(String uri, String content) {
		return executePutPost(new HttpPost(uri), content, false);
	} 
 
	@Override 
	public HttpResponse post(String uri, InputStream content) {
		InputStreamEntity e = new InputStreamEntity(content, -1);
		e.setContentType("application/json");
		HttpPost post = new HttpPost(uri);
		post.setEntity(e);
		return executeRequest(post);
	}