是否有任何应用程序或方法来记录或调整http请求甚至编辑它? 我尝试了一些代理应用程序,但它没有任何帮助工作。 如果有任何app剂量不要求根。 如果我将模拟器(bluestackes)放在像wireshark这样的沙盒中呢?
答案 0 :(得分:1)
是的,HTTP GET
public static InputStream getInputStreamFromUrl(String url) {
InputStream content = null;
try {
HttpClient httpclient = new DefaultHttpClient();
HttpResponse response = httpclient.execute(new HttpGet(url));
content = response.getEntity().getContent();
} catch (Exception e) {
Log.("[GET REQUEST]", "Network exception", e);
}
return content;
}
// see http://androidsnippets.com/executing-a-http-get-request-with-httpclient
答案 1 :(得分:1)