1吩跋、電腦端配置端口:Proxy->Proxy settings->8888并勾選 Enable transparent HTTP proxying
2蜗搔、手機(jī)端配置:打開WiFi,無線網(wǎng)絡(luò)和電腦端必須是同一個(gè)局域網(wǎng)內(nèi)畦贸,設(shè)置代理:端口和ip地址(電腦端win+R=》cmd=》ipconfig查看IPv4地址)
(也可直接在Help->SSL Proxying->Install Charles Root Creatificate on a Mobile Device or Remote Browser查看ip地址和端口)
3陨闹、SSL證書配置
(1)先下載SSL手機(jī)端證書配置
Help->SSL Proxying->Install Charles Root Creatificate on a Mobile Device or Remote Browser 設(shè)備安裝證書
(2)點(diǎn)擊完成之后在手機(jī)端瀏覽器中輸入網(wǎng)址下載證書http://chls.pro/ssl
(3)電腦端配置:
Help->SSL Proxying->Install Charles Root Creatificate->安裝證書
4、抓取https接口配置:
Proxy->SSL Proxying Settings->Add (根據(jù)需求配置全局可抓包Host與Port均為*或者對(duì)應(yīng)主機(jī)和端口)
5薄坏、弱網(wǎng)測(cè)試
設(shè)置弱網(wǎng):Proxy-》Throttle Settings-》勾選Enable Throttling( 可勾選Only for selected hosts 添加指定地址)-》選擇Throttle preset設(shè)置常見的網(wǎng)絡(luò)情況(也可直接在Bandwidth 添加網(wǎng)絡(luò)的上傳和下載速率)
6趋厉、重復(fù)發(fā)送一次&多次請(qǐng)求
選擇需要重新發(fā)送請(qǐng)求的會(huì)話上,
(1)直接點(diǎn)擊工具欄Repeat-重新按鈕颤殴,或者選中請(qǐng)求右鍵選擇repeat按鈕發(fā)送一請(qǐng)求(定位問題)
(2)右鍵選擇Repeat Advanced按鈕設(shè)置重復(fù)發(fā)送次數(shù)(可做壓力測(cè)試:判斷多次發(fā)送請(qǐng)求時(shí)服務(wù)器響應(yīng)時(shí)間)
7觅廓、右鍵Compose編輯接口
懶得打字? ? 直接上圖 趴~~~~