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).
Read the following information to learn how to integrate the Charles Proxy with a Perfecto device.
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:
- Download and install Perfecto Connect.
- Generate a TunnelID with Perfecto Connect by using a bridging proxy.
- Open a Perfecto device and connect with the generated TunnelID.
- Open the Charles proxy.
- Launch "chls.pro/ssl” in the device browser and download the certificate.
- Install the certificate.
- Explicitly mention "SSL inception" in the Charles proxy:
- In the Charles UI, go to Structure.
- Right-click https://www.charlesproxy.com and then click Enable SSL Proxying.
- Launch AUT (Native App/WebApp) in the device and see the Network traffic in the Charles proxy.