public static String doPOST ( final URL url , final Properties requestProps , final Integer timeout , final String encodedData , boolean includeHeaders , boolean ignoreBody ) throws IOException { HttpURLConnection conn = ( HttpURLConnection ) url . openConnection ( ) ; setRequestProperties ( requestProps , conn , timeout ) ; sendPostData ( conn , encodedData ) ; return parseHttpResponse ( conn , includeHeaders , ignoreBody ) ; }
Do a http post request and return response