How do I listen to data from third-party applications (SOAP or RESTful clients) when they access HTTPS websites?

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.