Install Fiddler on cp

  1. Open Fiddler, Tools > Otpion > Connections, keep port in 8888 > HTTPS, and check "Allow remote computers to connect";

    Fiddler for device

 

  2. Tools > Otpion > HTTPS, check "Decrypt HTTPS traffic";

               Fiddler for device

  3. Close Fillder and reopen again, above settings will active.

How to use Fiddler to capture network trace on Android Devices?

Configure Fiddler

  1. Click Tools > Fiddler Options > Connections.
  2. Ensure that the checkbox by Allow remote computers to connect is checked.
  3. If you check the box, restart Fiddler.
  4. Hover over the Online indicator at the far right of the Fiddler toolbar to display the IP address of the Fiddler server.

Configure Android Device

  1. Open android devices Settings > Wi-Fi.
  2. Tap and hold your current Wi-Fi network. Select Modify Network.

            Fiddler for device

    3. Tap the Show advanced options > Proxy settings dropdown and select Manual and Type the IP address and port (usually 8888) of the Fiddler server, eg:192.168.1.164:8888

      Fiddler for device

    4. To verify this configuration, open browser on devices, go to http://fiddler IP:8888/. should display the Fiddler Echo Service webpage, and the traffic should appear in Fiddler.

Decrypt HTTPS trust FiddlerRoot Certificate

  1. On the Fiddler Echo Service Webpage, click the FiddlerRoot Certificate link.
  2. Install the certificate FiddlerRoot Certificate 

       Fiddler for device

     

How to use Fiddler to capture network trace on iOS Devices?

Set the iOS Device Proxy

  1. Tap Settings > General > Network > Wi-Fi.
  2. Tap the settings for the Wi-Fi network.
  3. Tap the Manual option in the HTTP Proxy section.
  4. In the Server box, type the IP address or hostname of your Fiddler instance.
  5. In the Port box, type the port Fiddler is listening on (usually 8888).
  6. Ensure the Authentication slider is set to Off.

       Fiddler for device

Decrypt HTTPS Traffic from iOS Devices

  1. On the iOS device, go to http://fiddler server IP:8888/ in a browser.
  2. From the bottom of the Fiddler Echo Service webpage, download the FiddlerRoot certificate.

       Fiddler for device

    3. Open the FiddlerRoot.cer file.

    4. Tap the Install button.

           Fiddler for device

    5. Tap the Install button again.

     Fiddler for device

    Note: On iOS 10 and later, after installing the Fiddler Root certificate, go to Settings -> General -> About -> Certificate Trust Settings and manually enable full trust for the Fiddler Root root certificate. Accept the dialog that says that this will allow a third-party to eavesdrop on all your communications.

    

 

相关文章: