1. Capturing HTTP requests
Postman工具設(shè)置代理捕獲HTTP請求(可以是瀏覽器,手機(jī)app,桌面應(yīng)用)。
- Note for the Postman native apps, request captures over HTTPS will not work if the website has HSTS enabled. Most websites have this check in place.
- 設(shè)置Postman代理: 點(diǎn)擊菜單欄衛(wèi)星攔截圖標(biāo),Postman默認(rèn)監(jiān)聽端口 5555,選擇Target為History那么監(jiān)聽到的所有HTTP請求都會(huì)到History歷史中。

輸入圖片說明
- 設(shè)置瀏覽器代理為: 127.0.0.0.1:5555
- 設(shè)置手機(jī)代理為:電腦IP:5555(確保手機(jī)和電腦處于同一局域網(wǎng))
2. Postman Interceptor
Postman Interceptor is a Chrome extension that functions as a proxy to capture HTTP or HTTPS requests.
- 把圖標(biāo)設(shè)置為‘ON’即可攔截到瀏覽器請求。