Tcpmon usage Summary

Source: Internet
Author: User
I. Introduction to tcpmon

Tcpmon is a project under Apache, download link: http://ws.apache.org/commons/tcpmon/download.cgi

Tcpmon is equivalent to a transfer station. It can set the receiving port and the target port;

Function: intercept and view the HTTP request and HTTP information between the customer and the service;

Ii. tcpmon Application

There is a Web Service published on http: // localhost: 9876, that is, Port = 9876, IP = 127.0.0.1;

Generally, if the client wants to request web services, it must set the port number to 9876. However, if tcpmon is available, the client can set the port number to 8080, As long as tcpmon can be set as follows:

In this way, tcpmon can listen to port 8080, display the HTTP request on the interface after receiving it, then send the request to port 9876, and listen again to the HTTP Response sent back from Port 9876, and displayed on the interface;

The effect is as follows:

Related Article

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.