Flutter抓包

前言:通过Charles进行抓包

步骤:

1、查看Charles代理地址Help->SSL Proxying->Install Charles Root Certificate on a Mobile Device or Remote Browser

Flutter抓包_第1张图片

2、配置代理

   (_dio.httpClientAdapter as IOHttpClientAdapter).createHttpClient = () {
      HttpClient client = HttpClient()..idleTimeout = Duration(seconds: 3);
      client.findProxy = (uri) {
        return "PROXY 192.168.7.167:9999";
      };
      return client;
    };

你可能感兴趣的:(flutter,抓包)