public static Map<String, Object> post(String url, Map<String, Object> body, Integer connectionTimeout, Integer soTimeout) throws Exception
{
HttpClient client = getHttpClient(url, connectionTimeout, soTimeout);
HttpPost httppost = new HttpPost(url);
List<NameValuePair> formParams = setParams(httppost, body);
UrlEncodedFormEntity entity = new UrlEncodedFormEntity(formParams, "UTF-8");
httppost.setEntity(entity);
long t1 = System.currentTimeMillis();
HttpResponse response = client.execute(httppost);
long t2 = System.currentTimeMillis();
NewRelic.addCustomParameter(System.currentTimeMillis()+"--"+url, (t2 - t1) + " ms");