0

是否有任何应用程序或方法来记录或调整 http 请求甚至对其进行编辑?我尝试了一些代理应用程序,但它没有任何帮助。如果有任何应用程序不要求根。如果我把模拟器(bluestackes)放在像wireshark这样的沙箱里呢?

4

2 回答 2

1

你可能想试试这个。不过,它似乎不支持编辑。 https://play.google.com/store/apps/details?id=jp.co.taosoftware.android.packetcapture

于 2013-09-09T05:34:50.813 回答
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
于 2013-09-08T21:33:03.077 回答