Setup fiddler at your PC to listen to remote connections
Get your ip for proxy from fiddler. See fiddler instructions for that.
Configure your device or emulator for proxy setup for this ip and port
Visit your proxy at the browser like: http://yourIpAdress:8888
Click to install fiddler cert
Verify that you can see this cert at Settings->Security->Trusted Credentials->click User tab
Try to visit some pages at the browser(at your device or emulator). You should see them at Fiddler now.
When you run apps, they may use HttpsUrlconnection. It will not show up at the Fiddler. You need to do one more trick in Fiddler:In Fiddler click "Rules->Customize Rules"
In opened script and find function OnBeforeResponse In the function body add following code: if (oSession.oRequest["User-Agent"].indexOf("Dalvik") > -1 && oSession.HTTPMethodIs("CONNECT")) {oSession.oResponse.headers["Connection"] = "Keep-Alive";}
How to listen to httpUrlConnection in Android app from Fiddler
最后編輯于 :
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。
推薦閱讀更多精彩內容
- PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...