title: Open Url with post Method android
body: <p>I have to send some parameters to a url and open it, But i dont know how to do it</p>
  
  <pre><code>var variables:URLVariables = new URLVariables();
  variables.param1 = "param1";
  variables.param2 = "param2";
  
  var request:URLRequest = new URLRequest("https://www.paypal.com/cgi-bin/webscr");                 
  request.method = URLRequestMethod.POST;
  request.data = variables;
  navigateToURL(request,"_blank");
  </code></pre>
  
  <p>This is an example in IOS but i dont know how to do it in android </p>
  
  <p>i Think i have to do it with an intent but </p>
  
  <pre><code>params = URLEncoder.encode(""+ "cmd=param1"+ "&amp;business=param2"+"utf-8");
  
  String url = "https://www.paypal.com/cgi-bin/webscr" + params;
  Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
  
  startActivity(browserIntent);
  </code></pre>
  
  <p>i think i should do it like this but it is not working
  i am sending it to paypal</p>