With the increasing use of the Internet, in our daily development and debugging (for example, when debugging soap and restful), we often need to access the site with third-party tools to access HTTPS, in order to simplify the description, this article uses IE browser to access the https://provided by Google Www.googleapis.com/discovery/v1/apis RESTful Services For example, note that this is based on HTTPS protocol access, if using third-party sniffer tools, such as Wiresharp, Even if we can catch the HTTP packet, the content displayed is garbled, because the content of the transmission is encrypted, and the encrypted private key is stored on the server side, theoretically we will not get this private key, therefore, it is unlikely to be able to capture packets of data decrypted, But sometimes we do want to know exactly what information our client sends, and what information does the server return to us? One way to do this is through TCP SSL monitor.
Step 1: Download the TCP SSL Monitor tool, and configure the Java home run environment, how to configure, please search in Google or Baidu, Java environment variable settings
https://code.google.com/p/tcpmon/
Step 2. Open this tool and you will see the following page, be sure to check the SSL Server checkbox
Step 3 fill in the local listening port (a port that is not used by other applications, such as my local Machine is: 9999), and then fill in the corresponding
Google's server address and the default port for https: 443, server name, fill in: www.googleapis.com, last click,
"Add Monitor" button
Step 4. After clicking "Add Monitor", the following screen will pop up.
Step 5: Enter in the browser, Https://127.0.0.1:9999/discovery/v1/apis
Step 6. Return TCP SSL Monitor to view the messages sent and will see the messages sent by the browser and the messages returned on the Google server