Code example for ByteArrayEntity

Methods: setContentType

0
 
		Log.d("HttpPostCommand", "Body: " + body);
 
		HttpPost post = (HttpPost) request;
 
		ByteArrayEntity bodyData = new ByteArrayEntity(body);
		bodyData.setContentType(getContentType());
		post.setEntity(bodyData);
	} 
 
	@Override 
	protected Object getErrorResponse(HttpResponse response)
	{ 
		return null; 
	} 
 
	@Override 
	protected Object getErrorResponse(Exception error)
	{ 
		return null; 
	}