entity.setChunked(chunked);
httpMethod.setEntity(entity);
} else if (requestContent instanceof File) {
MultipartEntity entity =
new MultipartEntity();
entity.addPart(((File) requestContent)
.getName(), new FileBody((File) requestContent));
entity.addPart("param_name", new StringBody("value"));
httpMethod.setEntity(entity);
} else {
throw new IllegalArgumentException("requestContent must be a String or File");