1. Capturing HTTP requests
Postman工具設置代理捕獲HTTP請求(可以是瀏覽器拇涤,手機app娘荡,桌面應用)鸟廓。
- 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.
- 設置Postman代理: 點擊菜單欄衛(wèi)星攔截圖標仁卷,Postman默認監(jiān)聽端口 5555舞痰,選擇Target為History那么監(jiān)聽到的所有HTTP請求都會到History歷史中弃酌。
- 設置瀏覽器代理為: 127.0.0.0.1:5555
- 設置手機代理為:電腦IP:5555(確保手機和電腦處于同一局域網(wǎng))
2. Postman Interceptor
Postman Interceptor is a Chrome extension that functions as a proxy to capture HTTP or HTTPS requests.
- 把圖標設置為‘ON’即可攔截到瀏覽器請求氨菇。