Open Url With Post Method Android
I have to send some parameters to a url and open it, But i dont know how to do it var variables:URLVariables = new URLVariables(); variables.param1 = 'param1'; variables.param2 = '
Solution 1:
this is what i was looking for
String uri = Uri.parse("https://www.paypal.com/cgi-bin/webscr")
.buildUpon()
.appendQueryParameter("param1", "param1")
.appendQueryParameter("param2", "parma2")
.build().toString();
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
startActivity(browserIntent);
Post a Comment for "Open Url With Post Method Android"