Viewing HTTP or HTTPS traffic with “Charles Proxy” that is not displayed behind the code of a Ruby program.
Showing this information will help diagnoise what is being sent to the remote end-point.
- Install Charles Proxy
- Save the RootCA certificate from Charles Proxy
- Point the environment variable called “SSL_CERT_FILE” to the saved file
- Poing the environment variable called “http_proxy” to “http://localhost:8888”
- Once done, launch Charles Proxy and execute your Ruby script
If the icon for the end-point is a “pad-lock” this indicates you need to enable SSL Proxying. Right click on the hostname of the end-point in the structure list and choose to enable SSL Proxying.
You should now see a new end-point be created with a blue sphere (not a pad lock) and you can now dig down to see all the calles and data returns from the end-point!