This section describes how to configure Fiddler for use with capturing sessions from mobile devices using Client-Side Capture.
Fiddler is an HTTP proxy debugger that you can download for free. The free tool is available at:
Enable remote connections
Since Fiddler cannot be deployed on a Mac or iOS device, Fiddler must be configured to use a remote connection.
- In the Fiddler menu, select Tools > Fiddler Options > Connections Tab.
- On this tab, select the
Allow remote computers to connect
check box.Note: Write down the port number on which Fiddler is listening for HTTP traffic. By default, the port is8888
. This port number and the system's name/IP address are required to configure the proxy settings on the Mac system and the device. - Restart Fiddler for all the settings to take effect.
- Verify that the proxy is working:
- Start Internet Explorer.
- Clear the browser cache.
- Browse to any website.
- The HTTP traffic should be captured by Fiddler.
Configure the mobile device to use Fiddler proxy
After you enable remote connections, you can configure the mobile device to use Fiddler proxy.
To configure the mobile device to use Fiddler proxy:
- For your Macintosh system, you can configure the system level HTTP(S) proxy to point to your Windows™ system on which Fiddler is running. Specify the computer name or IP address) and the port number.
- Verify that the proxy is configured correctly by using Safari to browse the web.
- For your mobile device, configure the HTTP proxy settings. Select Settings > WiFi > <WiFi Network IDHTTP Proxy > Manual.
- Verify that your mobile application traffic can be captured by Fiddler by running your application on the SIM or device.
Configure the Tealeaf Target Page
To configure the Tealeaf Target Page, complete the following steps.
- Identify a server that is accessible to your application.
- Select one of the sample Tealeaf target files, as appropriate. Sample targets are available for aspx, jsp, and php application servers.
- Deploy the target page on the server. Note its URL.
- Test the deployment by accessing the URL through your browser.
Script Fiddler to route existing customer application target to TeaLeafTarget.php
You can script Fiddler to route existing customer application target to TeaLeafTarget.php
.
To script Fiddler to route existing customer application target to TeaLeafTarget.php
:
- In the Fiddler menu, select Rules > Customize Rules...
- It opens CustomRules.js file. Under function OnBeforeRequest(oSession: Session) add the following code and save the file.
if (oSession.url=="www.customersite.com/Target.html") { oSession.url = "www.straussandplesser.com/store/js/tealeaf/ TeaLeafTarget.php"; }