Mike Ormond's Blog

Musings on mobile development and Windows Phone 7 in particular.

Monitoring Web Requests on Windows Phone 7

Monitoring Web Requests on Windows Phone 7

  • Comments 2

Not exactly news this one, as apparently it’s been around since 15/10 but I had call to do some http traffic inspection on the emulator on a couple of occasions recently. Normally I’d turn to my old friend Fiddler but I’d read somewhere that it couldn’t capture the emulator traffic. That was until Fiddler version 2.3.0.7 was released – it’s now possible to monitor the emulator traffic with Fiddler.

There’s some voodoo involved – at least it seemed like voodoo to me – but lo and behold it worked first time.

Fiddler

For full details see Eric’s post Fiddler and the Windows Phone 7 Emulator. For ease, I’ve reproduced the steps to get up and running from Eric’s post below:

  1. Install Fiddler 2.3.0.7.
  2. Start Fiddler.
  3. Click Tools > Fiddler Options.
  4. Open the Connections tab and tick the Allow remote computers to connect box
  5. Click OK to close the Fiddler Options dialog.
  6. In the QuickExec box under the session list, type prefs set fiddler.network.proxy.registrationhostname HostName where HostName is the name of your desktop computer.
  7. Close and restart Fiddler.
  8. Start (or restart) the Windows Phone 7 Emulator.
  9. Open Internet Explorer on the Emulator.
  10. Observe, your traffic shows in Fiddler.
  • Hi, this is very interesting. Is there a way to do this on an actual device running in release mode? The app I am working on calls to a website - while in debug and running the debugger in release mode, I never have a problem. But while running it purely in release mode, it occasionally gets an error that I have been unable to work out yet why, and it would be useful to use a method like this to see what it is doing, as I am convinced its not actually making the call.

  • Hi Wayde

    Yes, you should be able to get this to work using the technique outlined here: www.fiddler2.com/.../hookup.asp. I connected via Wifi and set the proxy server on that connection to be the IP address of the machine running Fiddler (with a port of 8888) and I can see the network traffic from the device. Hope that helps, Mike.

Page 1 of 1 (2 items)