Pages

Wednesday, 2 April 2014

Intercept HTTP Requests sent from browser on the Android Emulator

Usecase:
In my previous post, I showed you how you can intercept/monitor HTTP requests arising from your app deployed on the emulator. In this post, I will show you how the requests arising from the emulator's browser can be intercepted/monitored using HTTP Analyzer.

Steps:
At JDeveloper End:
Same as my last post. Note down the host and port values.

At Android Emulator end:
Follow the below steps to ensure that the browser requests go via the HTTP Analyzer.












In the Edit Access Point screen, change the proxy to 10.0.2.2 and port to the HTTP Analyzer port. Retain other values as shown.



 Now, if you open a browser on the emulator and try to open a site, you will get a certificate pop up.


Click Continue on it and you can now see the HTTP requests going through the HTTP Analyzer.


No comments:

Post a Comment