/*    */   public static String excutePost(String targetURL, String urlParameters)
/*    */   {
/* 54 */     HttpURLConnection connection = null;
/*    */     try
/*    */     {
/* 57 */       URL url = new URL(targetURL);
/* 58 */       connection = (HttpURLConnection)url.openConnection();
/* 59 */       connection.setRequestMethod("POST");
/* 60 */       connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
/*    */ 
/* 62 */       connection.setRequestProperty("Content-Length", Integer.toString(urlParameters.getBytes().length));
/* 63 */       connection.setRequestProperty("Content-Language", "en-US");
/*    */ 
/* 65 */       connection.setUseCaches(false);
/* 66 */       connection.setDoInput(true);
/* 67 */       connection.setDoOutput(true);
/*    */ 
/* 70 */       DataOutputStream wr = new DataOutputStream(connection.getOutputStream());
/* 71 */       wr.writeBytes(urlParameters);
/* 72 */       wr.flush();
/* 73 */       wr.close();
/*    */ 
/* 76 */       InputStream is = connection.getInputStream();
/* 77 */       BufferedReader rd = new BufferedReader(new InputStreamReader(is));
/*    */ 
/* 79 */       StringBuffer response = new StringBuffer();
/*    */       String line;
/* 80 */       while ((line = rd.readLine()) != null)
/*    */       {
/* 81 */         response.append(line);
/* 82 */         response.append('\r');
/*    */       }
/* 84 */       rd.close();
/* 85 */       String str1 = response.toString();
/*    */       return str1;
/*    */     }
/*    */     catch (Exception e)
/*    */     {
/* 89 */       e.printStackTrace();
/*    */       return null;
/*    */     }
/*    */     finally
/*    */     {
/* 94 */       if (connection != null)
/* 95 */         connection.disconnect();
/*    */     }
/* 97 */     //throw localObject;
/*    */   }