Are there any http proxies like fiddler or wireshark on android?
Asked Answered
S

3

22

I need to see what page an Android App is calling from my device. Are there any Apps like Fiddler or Wireshark to see what´s happening behind?

Subservience answered 19/7, 2011 at 19:30 Comment(2)
This question is off-topic here as asking for a tool. This should have been asked on Software RecommendationsBryna
@CliffBurton yes it should... but you just forget to see the date when the question was asked... there was no Software Recommendation on that date.Subservience
R
8

I normally use a laptop with Wireshark instead of trying to capture on the device:

Working link from web archive
http://droidhacks.com/2009/06/monitoring-network-traffic-using-os-x/ (dead link)

Setup the laptop to serve as the access point for the device and you can capture everything going on, and the wireshark display for the data is pretty rich.

Rabbinate answered 19/7, 2011 at 19:48 Comment(3)
This answer is a good example of why pertinent pieces from the article should be copied. • Install Wireshark • Follow the instructions in the readme to also install the ChmodBPF script • Under Sharing area of the OS X settings app configure your system to use an ethernet connection and share it out to wifi clients • Now configure your device to connect to the wifi network provided by your system, test to make sure it works • Startup Wireshark and set it to capture traffic (wifi is en1 on MacBook Pro systems, what I normally use) from waybackmachine: goo.gl/6mXcpDHalsy
I have tried connection the Android using your suggested link but I am unable to browse internet.Bourgeoisie
@SreekumarP no, if anything it needs a Windows machine.Earthshaker
S
6

If your Android device supports a proxy (apparently there are apps for that), you can just use Fiddler. See http://blogs.msdn.com/b/fiddler/archive/2011/01/09/debugging-windows-phone-7-device-traffic-with-fiddler.aspx for equivalent instructions for Windows Phone 7.

Sealy answered 21/7, 2011 at 13:29 Comment(4)
Related: I wrote up instructions for using Fiddler with an Android device: cantoni.org/2011/06/28/debug-http-android-fiddlerCann
FYI: I wrote up an updated guide with steps and screenshots here: Capture Android Mobile Web Traffic With Fiddler. Also the Fiddler website has a good writeup: Configure Fiddler for Android / Google Nexus 7Cann
@Cann Nice tutorial! You might want to add one hint though: Chrome does not use the normal WiFi proxy for HTTP requests if the option Reduce data usage under Chrome-->Settings-->Bandwidth management is activated. If it is activated, Chrome will use a Google proxy to reduce the data usage and will therefore ignore the custom proxy.Preestablish
@Preestablish thanks for pointing that out! I've updated my tutorial page to mention that for Google Chrome users.Cann
M
2

You can find how to configure Android emulator and Fiddler to watch http requests and responses here: http://vkosinets.com/blog/2011/08/16/debug-http-requests-from-android-emulator

Marlonmarlow answered 17/8, 2011 at 14:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.