Working with Charles Logs at Tester Work
Using Charles to View Calls and Responses
đĄÂ License Info
Click on Help and Register in the top-right menu of Charles and enter:
- Â Â Â Â Registered name:Â GAT HUB SRL
- Â Â Â Â License key:Â 2b0ca996bd7debbe69
đ ď¸Â Installation and Setup
- Download Charles Proxy on your laptop:Â http://www.charlesproxy.com/
- Register your Charles client using the license key
- Launch Charles
- SSL Proxy settings: Navigate to menu item Proxy -> SSL Proxy Settings -> SSL Proxying
- Check âenable SSL Proxyingâ
- Add â*.iheart.comâ and port 443
- To be safe add â*â and port 443
- Â Restart Charles on your computer
- Â Install an iOS build on your mobile device. The device should be connected to the same wi-fi as the laptop.
- Launch the app on a mobile device. Some calls may come through Charles on the laptop.
-  Installing Charles Certificate: On the mobile device, open the device browser like Safari or Chrome. Go to https://www.charlesproxy.com/getssl.
- It will ask to download/install the certificate. Tap Download/Install
- Go to device settings eg. On iOS, go to Settings â General â Profiles. It will show a certificate for Charles:
- Tap and install it
- Then got to Settings â General â About â scroll all the way down to Certificate Trust Settings.
- Tap and enable the toggle for the certificate that was installed.
- Relaunch the app. A permission modal may come up on your laptop.
- Select âAllowâ
- Charles should now start showing calls.
- Logs should show 200 status for us.api.iheart.com calls and other calls (Method: Get, PostâŚÂ Method: Connect means that Charles is not properly set up) as below. Red checkmarks should not be seen. If not, repeat the steps for SSL Proxy settings and Charles certificate installation.
Starting a Charles Session
- The initial setup for SSL Proxying and Certificate Installation should be done
- After launching Charles, select Help -> Local IP Address
- Take note of the local IP address of your computer
- On a mobile test device, go to Settings â wifi â select the info icon at the wifi (mobile device should be on the same wifi as your laptop/computer).
- Scroll down to Configure Proxy â select and set to Manual â enter Server as the Local IP address of your computer and Port as 8888
- (ANDROID ONLY) under âBypass proxy forâ, enter:Â localhost,127.0.0.1. Also, the build should be debugged, to see Charles calls.
- Open up the app on the device that you want to see data from
- On Charles, select Sequence from the main interface
- You should get a warning message to either Allow or Deny permission for the device to send data to Charles
- Select Allow