on 14 Mar 2024 11:30 AM
Fiddler is a free web debugging proxy that logs all HTTP/HTTPS traffic between your web application and the Internet. You can download Fiddler from the Telerik official site.
Capturing session data with Fiddler can be useful for troubleshooting scenarios such as:
When no user actions are captured for your application, the RUM JavaScript isn't injected, and the beacon signal isn't sent back.
When a JavaScript error caused by the RUM JavaScript affects your application.
In case of missing user actions, for example, a special interaction with the application.
You can upload exported Fiddler sessions to your organization's incident management system to facilitate issue resolution.
Note: Before using Fiddler, go to Tools > Fiddler Options > Connections and select Allow remote computers to connect. Otherwise, the Fiddler proxy won't work.
Also, you might have to change some of your firewall policies to allow the Fiddler port for incoming requests on the computer on which Fiddler runs.
You can use Fiddler to create an HTTP session of the monitored web application.
In Fiddler, select Tools > Fiddler Options > HTTPS.
Select Capture HTTPS CONNECTs and Decrypt HTTPS traffic.
Select File > Capture Traffic or use F12 to turn off capturing. Clear your browser's cache so that all cached items are removed and downloaded again.
Select File > Capture Traffic or use F12 to start capturing traffic again.
Reproduce the problem scenario to demonstrate that the issue occurred within your application. Make sure the affected page is fully reloaded after restarting traffic capture.
When done, select File > Save > All Sessions.
The instructions below are valid for any kind of system that supports a web proxy, for example, for Safari.
In Fiddler, select Settings > Wi-Fi > Modify Network.
Set Fiddler as the Wi-Fi proxy, as shown below. Add your machine's IP address as the Proxy hostname and the port that Fiddler listens on as the Proxy port.
To find the port that Fiddler listens on, select Tools > Fiddler Options > Connections. Use the value from the Fiddler listens on port field. To find your workstation IP and the proxy port via the command line, run ipconfig
on Windows or ifconfig
on Linux.
(optional) If your application uses SSL certificates, add the Fiddler certificate to your device.
Select Tools > Fiddler Options > HTTPS > Actions > Export Root Certificate to Desktop to obtain the Fiddler certificate.
Save the exported certificate, which is usually named FiddlerRoot.cer
, on your Android device by going to Settings > Security > Install from SD card. You should then see the certificate in the USER tab of Trusted credentials.
Select File > Capture Traffic or use F12 to turn off capturing. Clear your browser's cache so that all cached items are removed and downloaded again.
Select File > Capture Traffic or use F12 to start capturing traffic again.
Reproduce the problem scenario to demonstrate that the issue occurred within your application. Make sure the affected page is fully reloaded after restarting traffic capture.
When done, select File > Save > All Sessions.
Make sure you've selected the Decrypt HTTPS traffic check box in Fiddler's Settings > Wi-Fi > Modify Network. Also, do not forget to restart your application.
Otherwise, the body size of all requests in Fiddler is 0
bytes, as shown below:
If Decrypt HTTPS traffic is enabled, the requests have an actual size, as shown below:
Make sure to clear the cache in your browser and then reload the page where the problem occurs. This allows the necessary files to reload for the Fiddler session and enables your organization's support team to reliably reproduce the issue.
For example, the following image shows only five requests triggered when you type in the Google search field. This is not enough to reproduce the issue locally.
With the cache cleared and the page reloaded, you can see all the files needed to reproduce the issue and the five requests triggered when you type in the Google search field. This is enough for your organization's support team to reproduce the issue locally and speed up the support process.
If you cannot use Fiddler to create a session, Google Chrome offers an alternative way to export a session for review.
Note: Consider this alternative only as a last resort, as browsers tend to drop response bodies in HTTP archives. It's easier to reproduce a problem with Fiddler.
To collect the HTTP Archive Session (HAR) file using Chrome DevTools
If you cannot use Fiddler to create a session, Internet Explorer offers an alternative way to export a session for review.
Note: Consider this alternative only as a last resort, as browsers tend to drop response bodies in HTTP archives. It's easier to reproduce a problem scenario with Fiddler.
To export a NetXML session using Internet Explorer Developer Tools