Code example for InputStreamEntity

Methods: setContentType

0
		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);
	} 
 
	@Override 
	public HttpResponse postUncached(String uri, String content) {
		return executePutPost(new HttpPost(uri), content, true);
	} 
 
	@Override 
	public HttpResponse put(String uri) {
		return executeRequest(new HttpPut(uri));
	}