如何使用Smali代码发出发布请求?

时间:2019-03-06 11:10:01

标签: java post request smali

需要使用POST使用一个参数进行简单的org.apache.http.HttpRequest请求 使用Smali代码还是将Java转换为Smali之类的东西? 像这样的代码,但是在斯马里语中。

HttpClient httpclient = HttpClients.createDefault();
HttpPost httppost = new HttpPost("http://www.mywebsite.com");
List<NameValuePair> params = new ArrayList<NameValuePair>(1);
params.add(new BasicNameValuePair("param-1", "12345"));
httppost.setEntity(new UrlEncodedFormEntity(params, "UTF-8"));
HttpResponse response = httpclient.execute(httppost);

0 个答案:

没有答案