@Override public String post(String url,int timeout,String userAgent,Map<String,String> formData){
  String result=null;
  ByteArrayOutputStream baos=null;
  try {
    baos=new ByteArrayOutputStream();
    post(url,baos,timeout,userAgent,formData);
    result=new String(baos.toByteArray(),"UTF-8");
  }
 catch (  Throwable e) {
    LOG.error("Error posting data via http: " + e.getMessage(),e);
  }
 finally {
    closeQuietly(baos);
  }
  return result;
}

@ Override public String post ( String url , int timeout , String userAgent , Map < String , String > formData ) { String result = null ; ByteArrayOutputStream baos = null ; try { baos = new ByteArrayOutputStream ( ) ; post ( url , baos , timeout , userAgent , formData ) ; result = new String ( baos . toByteArray ( ) , "UTF-8" ) ; } catch ( Throwable e ) { LOG . error ( "Error posting data via http: " + e . getMessage ( ) , e ) ; } finally { closeQuietly ( baos ) ; } return result ; }
post a form content - type : application / x - www - form - urlencoded
