前言:通过Charles进行抓包
步骤:
1、查看Charles代理地址Help->SSL Proxying->Install Charles Root Certificate on a Mobile Device or Remote Browser
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;
};