Charles官網(wǎng)下載地址:https://www.charlesproxy.com/download/
Charles破解網(wǎng)站:https://www.zzzmode.com/mytools/charles/
一、使用Charles獲取iPhone網(wǎng)絡(luò)封包
1. Charles設(shè)置
“Proxy” ——>“Proxy Setting”? ——>“Proxies”
將HTTP Proxy的 Port設(shè)置為“8888”徒爹,并且勾選“Enable transparent HTTP proxying”
2.連接iPhone設(shè)置
獲取當(dāng)前Charles運(yùn)行的電腦ip地址:terminal輸入 ifconig en0
打開iPhone設(shè)置中腾啥,連接WiFi 的“HTTP代理”切換為手動,服務(wù)器用電腦ip哩牍,端口輸入“8888”
3.獲取封包
打開要獲取網(wǎng)絡(luò)封包的軟件棚潦,Charles會彈出允許連接的確認(rèn)請求,允許即可
二膝昆、使用Charles模擬慢速網(wǎng)絡(luò)或高延遲網(wǎng)絡(luò)
1. “Proxy” ——>“Throttle Setting”
勾選“Enable Throttling”丸边,并且可以設(shè)置Throttle Preset的類型