+ " " + readString(rsp.getEntity().getContent(), "UTF-8"));
} catch (Exception ex) {
throw new RuntimeException("Problem while " + http.getMethod()
+ ", Error:" + ex.getMessage() + ", url:" + url, ex);
} finally {
http.releaseConnection();
}
}
private void addHeaders(HttpRequestBase http) {
http.setHeader("Content-Type", "application/json; charset=utf-8");