1

I'm writing a windows phone 8 app that authenticates to email using httpwebrequest. For some reason I'm getting an authentication error and I need to look at the traffic.

Is there a way to configure visual studio to see the raw http traffic when I debug from my phone?

For example, can I configure fiddler to look at the traffic? Are there any tricks to print to console the httpwebrequest?

1 Answer 1

2

Nothing with Visual Studio. You can use Fiddler though. Just connect your device to the same WiFi as your PC, on the device Settings > Wifi > long tap on your network and tap Edit. Turn proxy on and type in your PC IP address and use 8888 as port. Open Fiddler and you are done. Remember to go to FIddler settings and allow the detection for remote devices:

Tools > Fiddler options > Connections > Allow remote computers to connect

5
  • Thanks for the answer but when I try it, I can no longer connect using https. Is there a workaround? Apr 30, 2014 at 16:42
  • @Mozly HTTPS main purpose is to hide precious data behind an encryption, the fact that you can't see raw data doesn't amaze me. In short is not really possible, but it depends on the HTTPS certificate quality. (I'm not an expert in web security)
    – fillobotto
    Apr 30, 2014 at 18:27
  • Its not impossible, I read that I can put some kind of root certificate but I dont know how to on the windows phone. May 1, 2014 at 2:20
  • Never said it's impossible, but I'm not an expert of these things. I suggest you to open a different question since the topic is not the same as the first one.
    – fillobotto
    May 1, 2014 at 5:23
  • 1
    I found that the best way to solve my problem was to create a mock server that echos the raw requests. May 2, 2014 at 2:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.