@VisibleForTesting String postRequest(long timestamp,String xml) throws RequestFailureException {
  String response=null;
  HttpURLConnection urlConnection=null;
  try {
    urlConnection=createConnection();
    setUpPostRequest(timestamp,urlConnection,xml);
    sendRequestToServer(urlConnection,xml);
    response=readResponseFromServer(urlConnection);
  }
  finally {
    if (urlConnection != null) {
      urlConnection.disconnect();
    }
  }
  return response;
}

@ VisibleForTesting String postRequest ( long timestamp , String xml ) throws RequestFailureException { String response = null ; HttpURLConnection urlConnection = null ; try { urlConnection = createConnection ( ) ; setUpPostRequest ( timestamp , urlConnection , xml ) ; sendRequestToServer ( urlConnection , xml ) ; response = readResponseFromServer ( urlConnection ) ; } finally { if ( urlConnection != null ) { urlConnection . disconnect ( ) ; } } return response ; }
posts the request to the omaha server .
