Use Charles Proxy in Perfecto

Charles is a web debugging proxy application for Windows, MacOS, and Linux. The Charles proxy enables you (a developer or tester) to view the HTTP and SSL/HTTPS traffic between your machine and the Internet, including requests, responses, and HTTP headers (with cookies and caching information).

Restriction: This feature is currently only available in enterprise clouds.

Read the following information to learn how to integrate the Charles Proxy with a Perfecto device.

Important: This document includes references to a third-party product, Charles. The user interface and usage of third-party products are subject to change without notice. For the latest published information about Charles, see the Charles website.

Keep the following in mind: 

  • Native/Hybrid applications traffic is masked by default. You should request your developer to unpin certificates to capture traffic. For more information, see SSL Certificates on the Charles website.

  • You may need to install SSL certificate in devices. Go to CharlesProxy > help > SSL Proxying > Install Charles Root Certification on Devices.

  • For iOS, you need to trust the certificate before using it.

    Post installation and trusting certificate, if you are getting the error "Remote Host closed connection during handshake", you must take an additional step to trust the Charles Root Certificate, by going to Settings > General > About > CertificateTrustTestings

To use a Charles proxy with Perfecto:

  1. Download and install Perfecto Connect.
  2. Generate a TunnelID with Perfecto Connect by using a bridging proxy.
  3. Open a Perfecto device and connect with the generated TunnelID.
  4. Open the Charles proxy.
  5. Launch "chls.pro/ssl” in the device browser and download the certificate.
  6. Install the certificate.
  7. Explicitly mention "SSL inception" in the Charles proxy:
    1. In the Charles UI, go to Structure.
    2. Right-click https://www.charlesproxy.com and then click Enable SSL Proxying.
  8. Launch AUT (Native App/WebApp) in the device and see the Network traffic in the Charles proxy.